CXX-164 Fix windows build breakage introduced in d43d275

The object to join is the thread, not the notification.