Call PersistenceManager.flush() before invoking the
LocalRepoTransactionListeners.