fill closure pointer in ResMgr::QueryNext

This fixes a randon segfault because of uninitialized closure in
Http::MakeCookie/CookieClosureMatch.