Test for existence of lockfile before trying to read it.
django 1.5.0 --> django 1.5.3 (Important for memory leak related to querysets, see https://code.djangoproject.com/ticket/19895)