Fix ASAN error by destroying counter variables after the callbacks that change them.

PiperOrigin-RevId: 926045772
diff --git a/quiche/quic/moqt/moqt_uni_stream_test.cc b/quiche/quic/moqt/moqt_uni_stream_test.cc
index 67c08df..9b446ea 100644
--- a/quiche/quic/moqt/moqt_uni_stream_test.cc
+++ b/quiche/quic/moqt/moqt_uni_stream_test.cc
@@ -652,6 +652,7 @@
   MoqtFetch fetch;
   fetch.request_id = 3;
   StandaloneFetch standalone(ftn_, Location(0, 0), Location(0, 9));
+  int objects_available_callbacks = 0;
   std::unique_ptr<MoqtFetchTask> fetch_task;
   auto upstream_fetch = std::make_unique<UpstreamFetch>(
       fetch, standalone,
@@ -659,7 +660,6 @@
       []() {});
   upstream_fetch->OnFetchResult(Location(0, 9), absl::OkStatus(), []() {});
   UpstreamFetch::UpstreamFetchTask* task = upstream_fetch->task();
-  int objects_available_callbacks = 0;
   task->SetObjectAvailableCallback([&]() { ++objects_available_callbacks; });
 
   uint8_t stream_header[] = {0x05, 0x03};