Distributed lock lacks expiration

Code reviewHard30 minAmazon and Stripe style

Your task

Review this Python distributed-lock usage (Redis SETNX-style).