Add a test to make sure if lock_for_update throws an exception, the lock is removed.
Merge pull request #2 from coblee/master

Add a test to make sure if lock_for_update throws an exception, the lock...