kernel: smp: Improve CPU timeout code for CPU online handling