Fix transaction abort after set cursor failure.