find_pack_entry(): do not keep packed_git pointer locally