This prevents deadlocks when no parallel write transactions are allowed, but a second transaction is needed to update outdated keys.