Fixing error in TWI::end(); did not release device lock.