This clamps the interval of repeating timers to 4ms after they have run 5 times. This prevents CPU spinning for `setInterval()` calls with low timeouts.