Bug fix: call MPI_Barrier() also in slaves to prevent master from suspending.