How to fix redis.exceptions.LockError: Cannot acquire lock in Python | DevErrors