tsan: flush dead thread info earlier (when another thread is finished rather than new thread is created)