ThreadYield() should act as a pause that also attempts to handle priority inversion.