docs: def _ensure_counter(self):
          """Ensure the sync counter is a valid non-dummy object."""
          if not isinstance(self.sync_counter, self._SynchronizationManager):
              self.sync_counter = self._SynchronizationManager()