Simple locking mechanism for redis in nginx/Lua