Created a convenient TLS macro with fancier semantics.

The attribute essentially forces GCC to go with the most restrictive
TLS implementation which should also have the least overhead.