[WSD] Fix error flow in IBSPDuplicateSocket.