Make arg_vec variables thread local in OpenMP

Move declarations inside openmp parallel region.