Custom Command Mutual exclusion

I use custom commands heavily to generate files. According to the help this is racy, unless a custom_target is wrapped around the generation step.
Would it make sense to protect custom commands with the same logic which protects targets from being executed multiple times (at least if the custom command has OUTPUTs). Or are there reasons to keep this racy?