[TSan] Use common flags in the same way as all the other sanitizers

llvm-svn: 217559
diff --git a/compiler-rt/lib/tsan/rtl/tsan_sync.cc b/compiler-rt/lib/tsan/rtl/tsan_sync.cc
index 9cc7789..1041073 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_sync.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_sync.cc
@@ -32,7 +32,7 @@
   creation_stack_id = 0;
   if (kCppMode)  // Go does not use them
     creation_stack_id = CurrentStackId(thr, pc);
-  if (flags()->detect_deadlocks)
+  if (common_flags()->detect_deadlocks)
     DDMutexInit(thr, pc, this);
 }