tsan: mark shadow for thread stack as "don't need" when thread exits