x86/process: Check PF_KTHREAD and not current->mm for kernel threads