Some thread_local tweaks.

1 job for master in 8 minutes and 52 seconds
Status Job ID Name Coverage
  Test
passed #668
coq
buildjob

00:08:52