Unregisters in drcachesim's func_trace_exit()
a thread-local storage (tls) slot originally registered during func_trace_init()
. #4799 resolves the false shortage of available drmgr's tls slots, caused by this absence of unregistering, by resetting the global state of ext libs on exit. However, for symmetry and to conform to the common pattern of unregistering on exit registered-on-initialization resources, this commit unregisters the used tls slot.
Issue: #4769 (closed)