tcp: deny tcp_disconnect() when threads are waiting