BUG: ImportError: No module named thread

Fixes #5136. Import dummy_threading if importing threading fails.
Merge pull request #5140 from pyhits/5136

BUG: ImportError: No module named thread