tests: port basic ha test to C.

This lets us use libmongoc for connection status and have no dependencies
on Python for testing.

Also, it means we can potentially run the test in the parent process.

See tests/test-replica-set.c for how simple the creation of a replicaset
can be for automation.