fs: add flush option to appendFile() functions
This commit adds documentation and tests for the 'flush'
option of the fs.appendFile
family of functions. Technically, support was indirectly added in #50009, but this makes it more official.
Refs: https://github.com/nodejs/node/issues/49886 Refs: https://github.com/nodejs/node/pull/50009