[U-Boot] [PATCH v3 1/6] env: unify logic to check and apply changes