Fix thread reference typo introduced in C++11 changes