SERVER-8998 Register an atexit handler to call _exit if a library calls ::exit().

This prevents static destructors from running if the program exits via ::exit()
or by returning from main(), until such time as we fix normal exit behavior.