@hjelmn pointed out a couple of days back that the sharedfp sm component raises on error on MacOS. After finally getting my hand on a MAC, the problem has been identified. Semaphore names on MacOS are restricted to 31 bytes, and we are exceeding that. Solution is mostly coded up.