mm: kmemleak: ensure that the task stack is not freed during scanning