Add CMake rules for thread-sanitizer

thread-sanitizer is a data race detector introduced into GCC from GCC 4.8.