Factoring the code with respect to m_lock.wait(). I realize that this code
is extremely tricky, when considering m_halt, m_suspended, and the rest of the logic.
Authored by: nerius 2023-04-02
Parent: [r321]
Child: [r323]