Add WaitForMainThread, which simply ticks the main thread for one
iteration (0.3 secs).