There's no need to test if the handle is non-NULL before calling
__wt_rwlock_destroy, that function anticipates NULL handles.
I don't expect to ever drill a path so we don't need the WT_BTREE.ckpt field,
remove the XXX.
Remove unused temporary buffer.
Swap out WT_ERR for WT_RET, there's no cleanup needed.