i2c: Add an interface to lock/unlock an I2C bus segment