Stop noisy logging about phantom shards that do not belong to the
current node by checking the shard ownership before logging about the
phantom shard. Note that only the logging was inaccurate. This did not
accidentally remove shards from the metadata that weren't really phantom
shards due to checks in `DropShardMetaRef` implementations.
Clean cherry-pick from master-1.x.
closes: #26533
(cherry picked from commit 8ef2aca1ca)