Convert CRYPTO_LOCK_SSL_* to new multi-threading API