Update CTestCustom.cmake.in

Exclude "threads" test from valgrind targets
[skip ci]