timers: fix build error in !oneshot case