mpi: Fix the return value of mpi_invm_generic.
* mpi/mpi-inv.c (mpi_invm_generic): Return correct value.