Don't ignore error return from WT_SESSION.close.
Remove unused variable.
Don't ignore error returns from __wt_rwunlock, __wt_rwlock_destroy.