Flush CIB tempfile before opening in external editor (pcs cluster edit)

Opening a tempfile just after it has been written results in an incomplete file to be opened in an external editor. The file buffers need to be flushed first.