Distributed locking mechanism using haredis