Prevent polling at the moment of a thread context switch to guarantee forward progress when heartbeat interrupt rate is very high.