Add error checking to calls to __wt_cache_full_check.