openssl: Support multi-threaded applications