'Unlock this locked binary protocol so that further boxes may be sent
again.  This is used after an attempt to switch protocols has failed
for some reason.'

def _unlockFromSwitch(self):

    if (self.innerProtocol is not None):
        raise ProtocolSwitched('Protocol    already    switched.        Cannot    unlock.')
    self._locked = False
