[OPENMP] Improved variable lookup procedure for threadprivate variables.