code: def datalock(self, acquire=True):
          # type: (_BaseResumeManager) -> None
          
          if acquire:
              self._lock.acquire()
          try:
              yield
          finally:
              if acquire:
                  self._lock.release()
docs: Delete the resume file db
          :param _BaseResumeManager self: this
          :param bool acquire: acquire lock