Wait for a lock with name.
        This will prevent other processes from acquiring the lock with
        the name while it is held. Thus they will wait in the position
        where they are acquiring the lock until the process that has it
        releases it.

def acquire_lock(self, name):
        """
        Wait for a lock with name.
        This will prevent other processes from acquiring the lock with
        the name while it is held. Thus they will wait in the position
        where they are acquiring the lock until the process that has it
        releases it.
        """
        if self._remotelib:
            try:
                while not self._remotelib.run_keyword('acquire_lock',
                                                      [name, self._my_id], {}):
                    time.sleep(0.1)
                    logger.debug('waiting for lock to release')
                return True
            except RuntimeError:
                logger.warn('no connection')
                self.__remotelib = None
        return _PabotLib.acquire_lock(self, name, self._my_id)