sha1_file: support lazily fetching missing objects