unix, windows: don't allow a NULL callback on timers