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

svn path=; revision=84678