Make instrumentation aware of OpenMP.

This patch modifies the instrumentation code so that instrumentation calls that
were previously placed just after the loop are now placed just after the
accompanying OpenMP body. This ensures that a '#pragma omp parallel for'
statement is not followed by a statement that is not a loop.