Bugfix: Ordering of MPI_Win_free() / buffer free

Previously MPI_Win_free erroneously appeared after the associated memory
buffer was freed (but actually has to happen before). This is now
corrected.