[Issue 7295] Problem with TLS: threads and OpenSSL