BUG: Generate MPI dependent proxies only when MPI enabled

Change-Id: Id8ce60dfa72817ca6b359906c628458ea45eb132
Merge topic 'fix_mpi_dependent-proxies' into next

616bdf7 BUG: Generate MPI dependent proxies only when MPI enabled