Fix refs.c;:repack_without_ref() clean-up path