mpi: Extend the internal mpi_get_buffer.