[PATCH 13/31] wait_task_inactive: treat task->state and match_state as bitmasks