Fix multithreading for Hive tests