arm64: smp: Add function to determine if cpus are stuck in the kernel