I2C Driver error handling mutex lock - Not released

In file common/rpi_i2c/rpi_i2c.c line 52 and line 73, the mutex lock is not released if the open syscall does not complete.