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