avoid cache misses in WiredTiger tree-walk and hazard functions
https://github.com/wiredtiger/wiredtiger/pull/3895