SERVER-14368 move isSelf from HostAndPort to a free function in namespace repl