added timeout to redis lock