cache: store vnodes in local vars in cache_zap_locked
(cherry picked from commit ffcf8f97f8a8fb92689793003acabc0a2fe97af4)