ssl: cargo-cult thread safety

OpenSSL's tests init everything in the main thread, so let's do that.
ssl: init also without threads
ssl: init everything all the time

Bring together all of the OpenSSL initialization to
git_threads_init() so it's together and doesn't need locks.

Moving it here also gives us libssh2 thread safety (when built against
openssl).