set tls of thread objects