TLSSocket: apply modified start-engine-on-connect patch (issue 4)