My point exactly: this can only work if everyone plays by the rules. That's not going to happen - anyone can write LDraw-compatible software, and there's no way to ensure that they all follow this pattern.
The timeout idea you suggest is workable, although the actual timeout would have to be random and not a fixed number otherwise you're back to the race-condition. OTOH, it's also a bad code-smell :-)
It isn't possible to have a single implementation of the code, because this is an OS-specific thing to do: we'd need (at the least) an implementation for Windows, one for Linux, one for MacOS, one for Android, ... Not to mention that it would likely be necessary to have implementations for languages such as Java, C# and so on.
This whole idea currently sounds to me like a solution in search of a problem.
The timeout idea you suggest is workable, although the actual timeout would have to be random and not a fixed number otherwise you're back to the race-condition. OTOH, it's also a bad code-smell :-)
It isn't possible to have a single implementation of the code, because this is an OS-specific thing to do: we'd need (at the least) an implementation for Windows, one for Linux, one for MacOS, one for Android, ... Not to mention that it would likely be necessary to have implementations for languages such as Java, C# and so on.
This whole idea currently sounds to me like a solution in search of a problem.