Add ENABLE_THREADS for these threaded tests

On at least FreeBSD linking with -lpthread is needed for std::thread.