Make Writer::flush a no-op default method

Closes #9126