Thread: see if the use of lightweight_test removes the error: double free or corruption.

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