Cross-platform and (truly) thread-safe OpenSSL initialization.