drivers:cpufreq: Fix frequency getting stuck when selecting the same frequency as sync_freq and optimal_sync_freq as MAX frequency (Francisco Franco)

Signed-off-by: zeroblade1984 <zeroblade1984@gmail.com>