acquire a lock before entering a try block that ends with the lock's release. Thanks for the catch Alex. Backport of r14668 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14669 bcc190cf-cafb-0310-a4f2-bffc1f526a37