counters: fix build, cleanup atexit.

The atexit stuff should probably go into mongoc_cleanup().