chardev: split tcp_chr_wait_connected into two methods