Import LockTimeout before trying to catch it.

If `lock.acquire` raised any sort of exception, a `NameError` would trump it because the `__enter__` method was trying to catch `lockfile.LockTimeout`, which wasn't imported.