Check thread level in MPI_T_init_thread
Fix MPI_T_cvar_write