make the main thread call waitAndWork instead of just wait

The main thread has an implicit thread token which makes loitering
illegal.
86e68dbf53Andrew Kelley committed on 6/30/2024, 8:54:02 PMparentdc207da
3 files changedLine totals unavailable