Fix for problem related to data-generator with serializing to RDF files if started multi-threaded