Acquire a mutex via the DB in Django