fixed node locked updating

Moved all node updates to a single lock on the flow.