Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread"

This reverts commit 0d4768528dee7217f8a66065d824d044c1a877ed.
Revert "Use threads for external commands"

This reverts commit e1b8b05ef3034ede65fb84141a5a3a908304ddd5.