Shuffle LSM manager code so it is more navigable.
Fixup race getting LSM handles exclusively.