Making ESMF_Finalize not called if built in CESM.

Previously this would finalize MPI after the ocean was done running, and
cause an issue where CESM would still call MPI after MPAS finalized it.
REMOVE LATER: Fixing an issue with tracer_min

This is incorporated into another branch and should be removed from this
branch later.