Fix thread hangs when client instances call poll, directly or indirectly.
Fix thread hangs when client instances call poll, directly or indirectly.

gmallard/stomp,gmallard/stomp,michaelklishin/stomp,stompgem/stomp,stompgem/stomp,ripienaar/stomp,sectioneight/stomp