sched: Only call post_select() if task is not in error state.