sparc64: Like x86 we should check current->mm during perf backtrace generation.