Tpetra::finalize should only finalize Kokkos or MPI if it initialized them
Created by: mhoemmen
@trilinos/tpetra Right now, Tpetra::finalize calls Kokkos::finalize unconditionally, and calls MPI_Finalize if MPI is initialized. In both cases, it does so regardless of whether Tpetra initialized either library. This is a bad idea, because users might want to call Tpetra::finalize even if they initialized Kokkos or MPI before calling Tpetra::initialize.