thrift: use --without-tests instead of --disable-tests

this commit is to solve the compilation error due to the flag passed into the compiler is wrong, and the test is still compiled.