code: def is_locked(self):
          
          if self.provider.lock_manager is None:
              return False
          return self.provider.lock_manager.is_url_locked(self.get_ref_url())
docs: Return True, if URI is locked.