FIX: implement libcurl ssl thread-safe locking