[server][ChildProcessManager] Adjust the critical section as the comment in EventCallback.