code: def lock(self, fail_on_lock=False, cleanup=False):
          
          return self.connection.lock(self, fail_on_lock, cleanup)
docs: Allows to lock a file via abl.util.LockFile, with the
          same parameters there.
  
          Returns an opened, writable file.