remove dead code, consolidate TLS-detection
remove dead code, consolidate TLS-detection

w1z2g3/crossbar,w1z2g3/crossbar,NinjaMSP/crossbar,NinjaMSP/crossbar,w1z2g3/crossbar,NinjaMSP/crossbar,w1z2g3/crossbar,w1z2g3/crossbar,w1z2g3/crossbar,w1z2g3/crossbar