Program freezes in multithreading mode

Dear all,
I use Geant4-11.0.3 to to simulate the response of the detectors to a EAS. When i ise multiprocessing with number of threads > 4 program always freezes in the end of run. My processors have 12 cores and 24 threads.
For example on 8 threads freezing time in the end is the same as the execution time of run ~ 5 minutes. For 1-4 threads there is no such problem, program terminates instantly.
Also there was no shortage of RAM, for 1 run program use 4/64 Gb

What could this be related to?