How that we have bits available in task->state, add a flag that tells if we're in the global runqueue or not.