Add barrier code. Most of the support routines are placeholders
for now.  To avoid PMI barrier use BARRIER_TEST define when compiling
the barrier code.