Right now probe passes are compiled one by one, since passes are only requested if `materials.queued_shaders_count` is 0 and requesting a pass will increase the number. This splits the logic into 2 functions, one for checking if sync is needed and another to check if pass shaders are needed. This allows compiling the shaders in parallel. Pull Request: https://projects.blender.org/blender/blender/pulls/122799