Destroy the lock after releasing an object (refcount goes to 0). Closes Issue #98.