Module destructors

The native TLS implementation needs a way to register destructors for its data. This module contains platform-specific implementations of that register.

It turns out however that most platforms don't have a way to register a destructor for each variable. On these platforms, we keep track of the destructors ourselves and register (through the guard module) only a single callback that runs all of the destructors in the list.

Modules