[ros-diffs] [CVS reactos] Check if attached when terminating thread. Suggested by tamlin.