added attributes for threadsafety warnings in clang to ccriticalsection
added attributes to cCSLock