[PATCH V3 2/4] cpuidle: move driver checking within the lock section