'Attempt to completely remove all the locks'

def _release_locks(self):

    self._acquire_event.clear()
    for lock in self._locks[:]:
        try:
            lock.release()
        except KazooException:
            pass
        else:
            self._locks.remove(lock)
