task/kclient: remove redundant double loop

Signed-off-by: John Spray <john.spray@redhat.com>