LSM manager threads.

* Fixup shutdown
* Move towards having multiple worker threads
* Get a bit better at scheduling merges
* Fixup closing a single LSM tree.