u-a: Flush the alternatives database file stream before fsync()ing it
For stream I/O the buffers have to be flushed before they are fsync()ed
to guarantee the data has been written, and as such fsync() can do its
job.
Missed in commit 0e0e26cb8e9e3b8e3a60c329d8ea0c6e5445742c.