i2c: modify internal impl to ensure the cmd will not be modified
i2c: modify internal impl to ensure the cmd will not be modified

related to: https://github.com/espressif/esp-idf/issues/5108

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf