Avoiding usage of MPI_THREAD_SINGLE when MPI_Query_thread does not exist