Fix race condition in IPCPipeline