oom: add helpers for setting and clearing TIF_MEMDIE