icount: fix deadlock when all cpus are sleeping