please review: Ticket 48045 - nunc-stans - get rid of thread stack code