ATMEGA328 locks up on watchdog reset

The WDT causes a reset unless it's configured for interrupt mode. See Table 11-1 Watchdog Timer Configuration.

Eventually your bootloader checks for the reason of the reset, finds the WDT and bricks.