pack-objects: convert locate_object_entry_hash() to object_id