ATMEGA328 locks up on watchdog reset

@6v6gt thanks for the suggestion, but adding wdt_reset() at the beginning of setup didn't make any difference.

Is it possible that the regular arduino bootloader is taking more than 4 seconds?