packfile: allow find_pack_entry to handle arbitrary repositories