@visibleForTesting Future<void> hasJournalErrors(bool hasErrors) => _lock.synchronized(() => _hasJournalErrors = hasErrors);