Kaitai_struct compiler has sporadic problems importing kaitai files and compiling (python) code
We compile Python code and have the impression that the Kaitai_struct compiler does not always work deterministically. **Sometimes the compiler claims not to find certain types from imported other kaitai files.** We have a main kaitai file which imports six other kaitai files using the toplevel sequencies as subtypes. When compiling again, it then works. 

This behaviour occurs from time to time, but its unpredictable.
What is interesting is that the error code says always that different types are not found!

This could have to do with the fact that maybe certain structures are not available at compilation time because the compilation of the subfiles takes place in parallel.

![error](https://user-images.githubusercontent.com/55811629/154287780-d10b2431-d9f3-4734-be86-a59c06f118ab.png)

