Fixed missing close in "0store optimise"

Was leaking file descriptors for old-style "sha1" manifests.