[PATCH 5.2 17/61] perf thread-stack: Fix thread stack return from kernel for kernel-only case