Using the built-in I2C calls leads to race conditions when used across threads. We previously were under the assumption that Linux I2C functions would be thread-safe but this has been shown to not be the case. All I2C read/write functionality in this repository needs to be protected with a mutex, implementation of this thread protection is somewhat up to the programmer.
There exists a fix that has not been pushed yet, but it is far from elegant and was not meant to be the solution, just a temporary patch.