Fix for async programs

When the partial buffer received for an async program is not complete
(ends with a EOL), the partial buffer was discarded. Add a new buffer
with this lost chars to complete this bytes next time

Signed-off-by: jruesga <jorge@ruesga.com>
Fix race condition

When the command was executed prior to block the execution, the thread
wait for the timeout. Add a sync access check to ensure that prior to
lock and wait the program executed is not finished.

Signed-off-by: jruesga <jorge@ruesga.com>
Fix for async programs (II)

also for stderr

Signed-off-by: jruesga <jorge@ruesga.com>
Fix listview selectors of history and bookmarks

Signed-off-by: jruesga <jorge@ruesga.com>