Created attachment 584095[details][diff][review]
Patch (v1)
So the reason that this happens is that TimeStamp::Now() tries to hold a critical section, and if the mainthread has already acquired that lock and is currently paused, a deadlock occurs.
A simple fix is to grab the timestamp before pausing the main thread.