locking: on shutdown, only release the master lock if it belongs to us
Merge pull request #435 from resque/locking-release

locking: on shutdown, only release the master lock if it belongs to us