Fixed a race condition where the prompt would randomly go missing.

el_gets was using fflush to output it's string, but because we have our own filter running on the piped pty output, fflush only causes the prompt to be written into the pipe, and does not cause the filter code to run immediately.

The simplest fix is to manually block and wait for all editline output to be processed.

This fixes PR 14637.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@191392 91177308-0d34-0410-b5e6-96231b3b80d8