Add equality testing to Threads

Account for this change github/developer.github.com@34a7456b687