[DF-4841] Fixes for mainthread jobs to be able to run from worker jobs.
[DF-5094] Now particles processing is performed in multiple threads.