[U-Boot] [PATCH V3 03/32] imximage: move flash_offset check to common location