Fix issue #11306: Master backend crashes when a slave backend disconnects

Protect pbs with proper (aka locked) refcounting.

The PlaybackSock must not be immediatly deleted on connectionClosed() if some other requests are still using it. This leads to segfaults in the MBE when a SBE disconnects.