changegroup: avoid instantiating storage if we are not using it

Authored by spectral.