Re-enable checks for threading results.

I'm not sure why they were never uncommented.
Increase threading timeout on Travis.

This causes spurious "errors" on builds.
Sleep in thread test using a Condition.

I tried using plain time.sleep, but it seemed to deadlock, so this way
it is.
Merge pull request #873 from QuLogic/threading-timeout

Increase threading timeout on Travis