tsan: add test for __cxa_atexit

Add a test for a common C++ bug when a global object is destroyed
while background threads still use it.

Depends on D114604.

Reviewed By: vitalybuka, melver

Differential Revision: https://reviews.llvm.org/D114605

GitOrigin-RevId: 9ea3bd5a1ccec785563faf82e08f6d9d6cb1ec0b
1 file changed