repack_without_refs(): add a files_ref_store argument