Fix strptime thread safety.

This should fix the error: "Failed to import _strptime because the import lock is held by another thread."

https://mail.python.org/pipermail/python-list/2009-June/540629.html