Simplify Query usage in CLI plugins
The Query was still assuming that all plugins run from a secondary
thread.
Since CliInterface-based plugins run from the main thread, there is no need to
emit the userQuery signal and then call Query::waitForResponse().
They can directly call Query::execute() instead.
Differential Revision: D3217