def METHOD_NAME(self, force=False):
    """
    Releases the file lock. Please note, that the lock is only completely released, if the lock counter is 0. Also
    note, that the lock file itself is not automatically deleted.
    :param force: If true, the lock counter is ignored and the lock is released in every case/
    """
    with self._thread_lock:
        if self.is_locked:
            self._lock_counter -= 1
            if self._lock_counter == 0 or force:
                lock_id, lock_filename = id(self), self._lock_file
                _LOGGER.debug("Attempting to release lock %s on %s", lock_id, lock_filename)
                self._release()
                self._lock_counter = 0
                _LOGGER.debug("Lock %s released on %s", lock_id, lock_filename)