SOLR-7248: In legacyCloud=false mode we should check if the core was hosted on the same node before registering it