I can offer access to the affected iMac over SSH if desired to assist in further diving into the code to see if this is the real culprit behind this issue.