Lock the candidate config. Requires ncclient.manager.Manager.

def lock(self):
        """ Lock the candidate config. Requires ncclient.manager.Manager. """
        if isinstance(self._session, manager.Manager):
            self._session.lock()