Fix TaskScheduler.WaitFor being broken for windows message based queues if you called it from other threads.