vm_is_stack: use for_each_thread() rather then buggy while_each_thread()