'Return a Tooz backend lock.
:param str name: The lock name that is used to identify it
across all nodes.'

def get_lock(self, name):

    lock_name = (self.prefix + name).encode('ascii')
    if (self.coordinator is not None):
        return self.coordinator.get_lock(lock_name)
    else:
        raise exception.LockCreationFailed(_('Coordinator    uninitialized.'))
