Replacing pthreads TLS implementation with gcc TLS

We experienced errors with pthreads implementation and temporarily
replaced it with gcc TLS implementation

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>