I might have this fixed on the version pending release. It used a TLS variable but it was only initialized in one thread which would mean if the file happened to be generated by thread #1, it would sync up, but the other work threads would make broken links.

We'll test it later I plan to release fix next week, hopefully it will work for gtkd too.