[PATCH 4.14 13/22] sched/debug: Fix task state recording/printout