Flush kfile in generic kfile_close implementation.