remove OpenMP threadprivate variables