qemu-char: make tcp_chr_disconnect() reentrant-safe