sha1_file: introduce an nth_packed_object_oid function