SERVER-10172 Refactor RamLog to make it thread-safe.

Also prevent accidental creation of duplicate ramlogs of the same name.

Conflicts:
	src/mongo/db/dbwebserver.cpp
	src/mongo/db/initialize_server_global_state.cpp
	src/mongo/s/d_migrate.cpp