Add socket_disconnect() function.

It pairs with socket_connect() function.

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