i2c: add i2c_trylock_bus wrapper, use it