CXX-11 Port src/mongo/client/scoped_db_conn_test.cpp

- added thread join
- added shuttingDown bool / mutex.
- fixed code formatting
- removed large commented section which was mostly rewritten