guard sslengine with a lock to prevent calling wrap and unwrap at the same time
Merge pull request #3410 from eminn/fix/ssl-broken-protocol

guard sslengine with a lock to prevent calling wrap and unwrap at the sa...