REF: internal method to set DatetimeIndex freq
xref #29801 we currently have a number of places where we do something like `dti._data._freq = new_freq` (where we have already validated `new_freq`), we should have some private method to do this.