BUG-8618: rework AbstractProxyTransaction.flushState()