run SSLEngine handshake tasks in same thread