cluster: fix race condition in runOnNodes

_That_ is what I call subtle.