With HA, really look for mongodb master on all nodes

We were only looking at the current node, unless the current node was
not part of the replica set. That's obviously broken if the current node
is part of the replica set, but not the master.
(cherry picked from commit ff3298d4baaced6df683a61dcdd52256252237df)