Fixed bug with thread result value if a thread object is destructed for a running thread. Rev: src/threads.c:1.269