x86/stacktrace: Prevent infinite loop in arch_stack_walk_user()