Minor restructuring, don't reach through the session handle to figure out
if we're dealing with a read-only (checkpoint) handle.