Use folly::getCurrentThreadId() in SSLContext