Add missing OMP barriers before exchanges.