sched/core: Fix a race between try_to_wake_up() and a woken up task