__cxa_thread_atexit_impl uses the TLS variables dso_symbol_cache and lm_cache, but the cache is not invalidated in dlclose. This means there is an ABA bug, and we could use the wrong link map for a stale dso_symbol value.