Guard SSLContext lock checks with init mutex and add setSSLLockTypesAndInitOpenSSL