stm32f10x/pios_i2c: fixed possible data race in I2C_Transfer