[PATCH v4 2/6] mkimage: fit_image: handle multiple errors when writing signatures