Spot dead locks:
Record the PID of the lock owner, and check if the PID still exists when we fail to obtain the lock.
Some comments
Merge pull request #3 from VirtuOz/identifyDeadLocks

Spot dead locks: