Fix corruption of the wait queue, add mm_task_wakeup() function.