SERVER-7940 do not call non-reentrant functions more than once

Some SSL initialization functions are documented as being non-reentrant,
so let's make sure we only call them once per process.
Note that this won't guarantee anything for the C++ driver usage of SSL.
SERVER-8496: make sure _id generated by server on insert is unique across dbs