arm64: move on_thread_stack() to <asm/stacktrace.h>