Locking SSL socket on operations, just in case threads