Move the cache full check for autocommit transactions out of the rollback path (since we don't reset cursors there), to after we close a curso.
refs #486