avr: fix divide when CLOCK_SECOND is not a power of two