Update dependencies on deprecated target rtc_base:critical_section

Bug: webrtc:11567
Change-Id: I3b01d65d97502dcef61912e6eb6c5352adc116e5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/223066
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34360}
diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn
index 501ca01..c780e29 100644
--- a/rtc_base/BUILD.gn
+++ b/rtc_base/BUILD.gn
@@ -160,7 +160,6 @@
 
   public_deps += [  # no-presubmit-check TODO(webrtc:8603)
     ":atomicops",
-    ":criticalsection",
     ":logging",
     ":macromagic",
     ":platform_thread",
@@ -279,7 +278,6 @@
   libs = []
   deps = [
     ":checks",
-    ":criticalsection",
     ":macromagic",
     ":platform_thread_types",
     ":stringutils",
@@ -505,7 +503,6 @@
     ]
     deps = [
       ":checks",
-      ":criticalsection",
       ":logging",
       ":macromagic",
       ":platform_thread",
@@ -552,7 +549,6 @@
     ]
     deps = [
       ":checks",
-      ":criticalsection",
       ":logging",
       ":macromagic",
       ":platform_thread",
@@ -576,7 +572,6 @@
   ]
   deps = [
     ":checks",
-    ":criticalsection",
     ":logging",
     ":macromagic",
     ":platform_thread",
@@ -1147,7 +1142,6 @@
     "test_client.h",
   ]
   deps = [
-    ":criticalsection",
     ":gunit_helpers",
     ":rtc_base",
     ":rtc_base_tests_utils",
@@ -1381,6 +1375,7 @@
         ":async_socket",
         ":bounded_inline_vector",
         ":checks",
+        ":criticalsection",
         ":divide_round",
         ":gunit_helpers",
         ":ip_address",