[server][ChildProcessManager] Move mainThread to protected because it's not needed to be public.