add preprocessor guards on LOCK/UNLOCK and MPI_VERSION
add preprocessor guards on LOCK/UNLOCK and MPI_VERSION

sourceryinstitute/opencoarrays,sourceryinstitute/opencoarrays,jerryd/opencoarrays,zbeekman/opencoarrays,jerryd/opencoarrays,zbeekman/opencoarrays,zbeekman/opencoarrays,sourceryinstitute/opencoarrays,jerryd/opencoarrays