Fix race in TestMongoClientFailover.test_discover_primary.