Update checkpoint code to get and release handles, so that LSM cannot

drop tables while a checkpoint is in progress.

Refs #543