replace-object: check_replace_refs is safe in multi repo environment