[pmix server] Fix the bug with direct modex mode.