[tsan/msan] adding thread_safety and uninitialized_checks attributes