Do the shutdown of ssl inside ssl_socket_free() function.

Signed-off-by: Thiago Farina <tfarina@chromium.org>