use MPI_Comm_get_attr correctly

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>