NPTL + TLS support fix