Disable thread-safety checking for code using gtest. Fixes (disabled-by-default) warnings about calls to unchecked code.