Pause main thread in infinite loop.