As discussed in #2289 this changes provide means to use the i2c interface safely within multible threads.