move BY_LOCK below OMP_CRITICAL
reconcile preproc symbols for omp
add autoconf magic for OpenMP detection
rename to match pragma name
cleanup some of the incorrect uses of omp atomic