Fixes #6040: Don't have a global pending state by node that overrides al...

...l the rules when we update one rules
I fear that the set of pairs of config id will be hard to maintain (I switch the meaning of the two at least three times during the the TR - maybe due to my state, but still :). 
So please add a case class previousAndExpectedNodeConfigId(previous: NodeConfigId, expected: NodeConfigId) so it's clearer which one is what.