clk: divider: Fix best div calculation for power-of-two and table dividers