qemu.tests: optimize wait_job_done function

move params.get() out of wait_job_done function;
And drop useless params;

Signed-off-by: Xu Tian <xutian@redhat.com>