Fixed instantiation of threadprivate construct