[server][ChildProcessManager] Fix a bug that wrongly decrements a semaphore count.