refs: do not use cached refs in repack_without_ref