Fix for issue #3761 --- if define operator<< for thread::id outside the class if not supported inside.