cpus: Change cpu_thread_is_idle() argument to CPUState