tsan: add a test that used to crash, fixed by r180180.