making i2c com thread-safe

Signed-off-by: Xavier Roche <opendev.os@gmail.com>