Thread: merge fixes for #8422, #8458, #8674.

svn path=/branches/release/boost/thread/; revision=84750