Avoid unreachable code complaints when HAVE_VERBOSE not defined.
Remove unused variables.
Last change was wrong -- ret was needed, we just weren't returning it.
__wt_buf_set() can fail, wrap NEEDKEY/NEEDVALUE calls to it in WT_ERR.

Attempt at minor cast simplification.