Use a flag in LSM cursors to track whether the cursor has incremented the session count, clean it up in a few more places in case error paths leave it set.