Proper QThreadData::canWait check emulation

https://github.com/sjinks/qt_eventdispatcher_libevent/commit/9556d525f047e9c26714aa2a497feb0778a98589