Core: added broadcasting send_wait on state removing.

Fixed hanging iteration threads if the client has disconnected when some threads were sleeping at send_reply_threshold.