Don't switch LSM chunks in application threads: the transaction can roll back, leaving the metadata inconsistent.

refs #675, #678
In pure insert workloads, close cursors we don't need.

refs #671