Change the signature of read_packed_refs()