[U-Boot] [PATCH v2 1/6] ubi: Fix broken cleanup code in attach_by_scanning