ALII-4689 - Only close lwip socket (lwip_close) and free CYASSL object (...

...CyaSSL_free) once.

@raensink @karlj-spindance - Please review.

Signed-off-by: Mike Stitt <mikes@spindance.com>
this seems fine provided we are certain that ssl and sockfd are not used anyplace subsequent to this or, if they are, the values are checked first.
Seems reasonable though, we are closing the socket so nothing should be using it any more.