Agreed that is a problem, but not very frequent.
You could write a timestamp value into the variable. If this timestamp is too far into the past, then execute. This would work like a hold-timeout feature.
Or you could just leave it as it is, and if a process gets stuck, realize it will have to be unstuck manually by someone with the authority to modify the contents of the variable.
There might be other options...