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