Fix task selection priority on process wakeup.

Thanks juiceme.