Thread: added test for #7755.

svn path=/trunk/libs/thread/; revision=83286