clk: Fix clk_get_by_* handling of index