Hold the checkpoint lock while syncing the file contents in LSM.

This avoids corruption caused by racing application and LSM checkpoints.
In LSM hold the checkpoint lock before discarding a handle.
Merge pull request #668 from wiredtiger/lsm_checkpoint_lock

Hold the checkpoint lock when manipulating handles in LSM.