Lock context manager implemented via redis SET NX EX and BLPOP.