cpufreq: Introduce cpufreq_driver_test_flags()