fixed #46; added sync/lock around I2C r/w methods