Don't set ret explicitly and then call WT_ERR, just call WT_ERR.