Add CMake rules for thread-sanitizer

thread-sanitizer is a data race detector introduced into GCC from GCC 4.8.  The
patch has been tested on CentOS 6.4 using CMake 2.8.10.2 and GCC 4.8.2.

Tested-by: Ming Chen <v.mingchen@gmail.com>
Signed-off-by: Ming Chen <v.mingchen@gmail.com>