NB: there was a theoretical bug here before (in workunit write). If the 'flushThreshold' was set (which it is not by default and probably never has been), then the limit checked didn't include what had already been committed to Dali.