Segfault due to data race on socket closing
When a socket is closed for a child process, the
closeClientSocket call is executed. If this is done through
SessionProcessManager::processDeadChildren(), this can happen safely, behind a mutex.
However, this call can also come from a
ProxyReply, which does not run this behind a mutex. This can lead to a race condition.