[U-Boot] [PATCH v2 2/2] fw_env: fix writing environment for mtd devices