Implement timeout for I2C transactions