Fixed an issue where ONTOLOGY_MULTITHREADING wasn't defined during tests