Do LSM switches in the worker unless the primary grows much too big.
Fix a possible divide-by-zero in the LSM throttle calculation.
Use the condition variable to signal the worker thread when a switch is required.
LSM worker threads don't need to check the state so often: increase sleep times.
Add a comment about how we realloc the arrays inside cursors.