[server][ChildProcessManager] Improve MT-safety.