char-socket: Lock tcp_chr_disconnect() and socket_reconnect_timeout()