tmp102d.c close i2c device file in case of error

The i2c device file needs to be closed to release the lock.