Fix restat dirty check logic for edges with multiple outputs
Fix restat dirty check logic for edges with multiple outputs

In a normal dependency scan (see DependencyScan::RecomputeDirty) we mark
all outputs of an Edge as dirty if any of the outputs is dirty.  This is
the correct behavior because if any output is dirty, we will run the
command for that Edge and that can touch any of the outputs of the Edge
and so all the outputs should be marked dirty.

When updating the dirty state of Node's for a restat check, we were not
applying this logic, instead only those outputs that were actually
"dirty" were marked dirty.

Before this patch, restat edges with multiple outputs caused not all
dependent edges to run.

automeka/ninja,atetubou/ninja,Ju2ender/ninja,jendrikillner/ninja,atetubou/ninja,martine/ninja,Maratyszcza/ninja-pypi,colincross/ninja,rjogrady/ninja,tfarina/ninja,rjogrady/ninja,iwadon/ninja,mohamed/ninja,colincross/ninja,nico/ninja,ndsol/subninja,nickhutchinson/ninja,maruel/ninja,bmeurer/ninja,maruel/ninja,mgaunard/ninja,colincross/ninja,AoD314/ninja,nickhutchinson/ninja,jhanssen/ninja,sorbits/ninja,mydongistiny/ninja,mgaunard/ninja,nocnokneo/ninja,autopulated/ninja,martine/ninja,glensc/ninja,AoD314/ninja,sxlin/dist_ninja,AoD314/ninja,drbo/ninja,liukd/ninja,Ju2ender/ninja,fifoforlifo/ninja,sgraham/ninja,nico/ninja,purcell/ninja,sorbits/ninja,ThiagoGarciaAlves/ninja,Ju2ender/ninja,dendy/ninja,vvvrrooomm/ninja,guiquanz/ninja,moroten/ninja,lizh06/ninja,jimon/ninja,bmeurer/ninja,maruel/ninja,dpwright/ninja,metti/ninja,nickhutchinson/ninja,kimgr/ninja,ctiller/ninja,kimgr/ninja,synaptek/ninja,guiquanz/ninja,atetubou/ninja,vvvrrooomm/ninja,AoD314/ninja,jendrikillner/ninja,fuchsia-mirror/third_party-ninja,martine/ninja,iwadon/ninja,glensc/ninja,ThiagoGarciaAlves/ninja,mydongistiny/ninja,ninja-build/ninja,glensc/ninja,Maratyszcza/ninja-pypi,nafest/ninja,fifoforlifo/ninja,metti/ninja,ctiller/ninja,jhanssen/ninja,ctiller/ninja,atetubou/ninja,drbo/ninja,nocnokneo/ninja,tfarina/ninja,syntheticpp/ninja,liukd/ninja,drbo/ninja,sxlin/dist_ninja,colincross/ninja,hnney/ninja,fuchsia-mirror/third_party-ninja,automeka/ninja,jendrikillner/ninja,Maratyszcza/ninja-pypi,mydongistiny/ninja,sorbits/ninja,kissthink/ninja,metti/ninja,jimon/ninja,dpwright/ninja,moroten/ninja,ninja-build/ninja,syntheticpp/ninja,bradking/ninja,sorbits/ninja,sxlin/dist_ninja,hnney/ninja,synaptek/ninja,juntalis/ninja,ninja-build/ninja,dpwright/ninja,mohamed/ninja,ilor/ninja,nico/ninja,mydongistiny/ninja,fuchsia-mirror/third_party-ninja,kimgr/ninja,nico/ninja,sgraham/ninja,purcell/ninja,bmeurer/ninja,martine/ninja,mgaunard/ninja,kissthink/ninja,nafest/ninja,sxlin/dist_ninja,fifoforlifo/ninja,fuchsia-mirror/third_party-ninja,tfarina/ninja,mohamed/ninja,dendy/ninja,Qix-/ninja,sxlin/dist_ninja,guiquanz/ninja,mgaunard/ninja,moroten/ninja,lizh06/ninja,hnney/ninja,Maratyszcza/ninja-pypi,ninja-build/ninja,ilor/ninja,autopulated/ninja,nicolasdespres/ninja,syntheticpp/ninja,automeka/ninja,juntalis/ninja,autopulated/ninja,sgraham/ninja,nicolasdespres/ninja,ilor/ninja,sxlin/dist_ninja,kissthink/ninja,nickhutchinson/ninja,syntheticpp/ninja,ndsol/subninja,nafest/ninja,iwadon/ninja,hnney/ninja,ignatenkobrain/ninja,jendrikillner/ninja,synaptek/ninja,dorgonman/ninja,dorgonman/ninja,nafest/ninja,jimon/ninja,Qix-/ninja,juntalis/ninja,mohamed/ninja,fifoforlifo/ninja,lizh06/ninja,Qix-/ninja,bradking/ninja,drbo/ninja,ignatenkobrain/ninja,dendy/ninja,ilor/ninja,jhanssen/ninja,jhanssen/ninja,sxlin/dist_ninja,ctiller/ninja,lizh06/ninja,purcell/ninja,liukd/ninja,dorgonman/ninja,dendy/ninja,nicolasdespres/ninja,bradking/ninja,rjogrady/ninja,glensc/ninja,iwadon/ninja,sgraham/ninja,bradking/ninja,nocnokneo/ninja,dpwright/ninja,moroten/ninja,ndsol/subninja,purcell/ninja,juntalis/ninja,kissthink/ninja,ignatenkobrain/ninja,Ju2ender/ninja,ThiagoGarciaAlves/ninja,liukd/ninja,tfarina/ninja,ignatenkobrain/ninja,nocnokneo/ninja,metti/ninja,ThiagoGarciaAlves/ninja,synaptek/ninja,maruel/ninja,Qix-/ninja,guiquanz/ninja,vvvrrooomm/ninja,autopulated/ninja,ndsol/subninja,bmeurer/ninja,dorgonman/ninja,rjogrady/ninja,kimgr/ninja,automeka/ninja,jimon/ninja,vvvrrooomm/ninja,nicolasdespres/ninja