code: def clear(self):
          
          self.database.delete(self.key)
          self.database.delete(self.event)
docs: Clear the lock, allowing it to be acquired. Do not use this
          method except to recover from a deadlock. Otherwise you should
          use :py:meth:`Lock.release`.