Clear nested tx flag before commit/rollback.