Fix SSL race condition exposed in new GMS:

wrap can invoke handshake completion, and triggering writable immediately
will end up being a no op, as it is already wrapping, and the callback
returns without writing anything.