[PATCH openEuler-1.0-LTS 7/8] [Backport] timers: Add shutdown mechanism to the internal functions