Utility code to perform OpenMP synchronization without full barriers.