Adding proper synchronization between MPI sender and receiver to avoid potential clashes with tags