ThreadLocalVar: use atomic counter for allocating symbols.