Preventing problems possibly introduced by r14662
Preventing problems possibly introduced by r14662

acquire a lock before entering a try block that ends with the lock's
release. Thanks for the catch Alex.

git-svn-id: 4f9f921b081c523744c7bf24d959a0db39629563@14668 bcc190cf-cafb-0310-a4f2-bffc1f526a37

django-nonrel/django-nonrel,mitsuhiko/django,jamespacileo/django-france,mitsuhiko/django,mitsuhiko/django,django-nonrel/django-nonrel,django-nonrel/django-nonrel,jamespacileo/django-france,jamespacileo/django-france,Instagram/django,disqus/django-old,Instagram/django,Instagram/django,disqus/django-old,disqus/django-old,skevy/django,skevy/django,skevy/django