Fix strptime thread safety.

This should fix the error: "Failed to import _strptime because the import lock is held by another thread." Only the first import gives errors. By explicitly doing an import before loading threads, we can ensure that consecutive imports work as intended.

https://mail.python.org/pipermail/python-list/2009-June/540629.html