Optimize resched with a running thread.

Esp. if it would go back to itself.