(ITS#7241) [PATCH] unbind: free the socket prior to destroying TLS context