Draft: libgimpbase and core: fix #12711 plugin hang on MacOS
Draft until further testing and I explore alternative fixes.
If no other alternative is found, this at least seems to fix the issue on MacOS.
Will assign Jehan reviewer once out of draft.