Some LSM optimizations

Avoid one possible source of long application delays, and make the behavior with multiple merge threads more predictable.