Forked version for Redis 2.6.12+ SET/EVAL lock pattern