timer: Generalize timer->base flags handling 2