Make type var supply thread safe.