Resource locking system using redis.