Distributed locking mechanism built on redis.