clockevents: Use helpers to check the state of a clockevent device