WriteBatch.Flush panics if called twice

mvdan commented :

Flush after Cancel similarly panics.