[PATCH v3 2/2] dfu: mtd: mark bad the MTD block on erase error