afeld/mongoid-locker — pull request #23 by nchainani (2014-05-02 02:23:16+00:00)
Title: call unlock only if this process still owns the lock

calling unlock when the process doesn't own the lock anymore can have other side effects - some other process holding a valid lock will lose it.