add support for thread-local objects with destructors

Change-Id: I19d809fec90d6d2ac4f5d772e3ab5af30025fb2e
5 files changed