esp_timer: fix the bug that when timeout of timer happens try to run callback(v4.0) See merge request espressif/esp-idf!6769