Add a missing stack_context.wrap in SSLIOStream.connect.

Run some of simple_httpclient test in both HTTP and HTTPS modes, which
would have detected this bug.

Closes #787.