pub fn mark_blocked_and_wait(wait: impl FnOnce())
Mark a Rayon worker thread as blocked. This triggers the deadlock handler if no other worker thread is active. Then wait for the user-specified condition.