Pessimistic locking using Redis