FIX: implement libcurl openssl thread-safe locking