Atomic redis.set when acquiring a lock

Both LUA and standard versions updated.