Thread: fix promise set_at_..._thread_exit; Added preconditions.

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