fsync makeflow's logfile after each node state change.

Requested by Dodi (CRC). This protects the log when the computing node
fails before propagating the changes in AFS.

@dthain, @batrick: This is a small change, but it is for AFS, so do you see any major drawbacks?