A reusable lock feature for django-apps