threading: Prevent possible division by zero
OFTimer: Reschedule before executing the callback

This makes sure that a repeating timer which needs half a second to
execute, but has an interval of 1 second, is indeed called every second
and not every 1.5 seconds.