code: def __checkLock(self):
          
          if self._isLocked:
              if (time.time() - self._timer) > TIMEOUT_TIMES[self._operation]:
                  self.__unLock()
                  return False
              return True
          return False
docs: Lock checking.
  
          Check if there is lock pending and check if enough time
          passed so requests can be unlocked.