Fixed #980: Terminating HPX threads don't leave stack in virgin state