timers: now `setInterval` works between calls

Fixes #8066.