timer_group: refactoring to avoid direct register access in the ISR See merge request espressif/esp-idf!5656