sha1_file.c: Don't retain open fds on small packs