lib_arch/board.c: Move malloc initialization before flash_init()