Fix some LSM latency issues

* have merge threads periodically check whether the tree needs to be switched in case the checkpoint thread is blocked; and
* don't turn on os_cache_dirty_max by default for LSM.