mm, oom: tighten task_will_free_mem() locking