halsampler tests: make halcmd not fail on waitusr if halsampler already finished

that hopefully fixes the last cause.

The authors of these tests deserve coding bank websites in Java for life.