timer: Generalize timer->base flags handling 1

https://github.com/engstk/hammerhead-5.0/commit/8b94d5169d3fee5b625c914ef06b56aa97c0b8a6