qttools_core: move private classes of WaitLoop in their own header/source files

This apply also for inner-class WaitLoop::StopCondition