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>