CSHARP-724. Unset primary flag when instance disconnects or a new primary is elected