more robust unlock using lua scripting.
see http://redis.io/commands/set .