Use == to compare threads

Using = makes us explore the whole thread tree.