Tidy up tso->stackobj before calling threadStackUnderflow (#7636)