Move the LSM tree lock inside the schema lock.

refs #749