WiFiClientSecure: don’t send close alert when opening new session
WiFiClientSecure: don’t send close alert when opening new session

When WiFiClientSecure::connect was called, it would first tear down and
existing and set up new TCP session, then tear down existing TLS session
(using ssl_free), and then set up a new one. This caused TLS close-
notify alert to be sent to the new TCP session, preventing new session
from being established. This change postpones setting IO ctx to the new
TCP connection, fixing this issue.

Ref https://github.com/esp8266/Arduino/issues/3330

sticilface/Arduino,jes/Arduino,Lan-Hekary/Arduino,me-no-dev/Arduino,Juppit/Arduino,esp8266/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,sticilface/Arduino,lrmoreno007/Arduino,wemos/Arduino,Adam5Wu/Arduino,lrmoreno007/Arduino,lrmoreno007/Arduino,wemos/Arduino,hallard/Arduino,Lan-Hekary/Arduino,lrmoreno007/Arduino,esp8266/Arduino,wemos/Arduino,Adam5Wu/Arduino,Juppit/Arduino,esp8266/Arduino,jes/Arduino,wemos/Arduino,me-no-dev/Arduino,esp8266/Arduino,me-no-dev/Arduino,jes/Arduino,sticilface/Arduino,hallard/Arduino,me-no-dev/Arduino,hallard/Arduino,Juppit/Arduino,Adam5Wu/Arduino,me-no-dev/Arduino,Juppit/Arduino,hallard/Arduino,lrmoreno007/Arduino,Lan-Hekary/Arduino,wemos/Arduino,jes/Arduino,jes/Arduino,Adam5Wu/Arduino,Juppit/Arduino,Adam5Wu/Arduino,Lan-Hekary/Arduino,hallard/Arduino