halsampler runtests: another stab at fixing #202

this should (hopefully) take care of the race conditions outlined in https://github.com/machinekit/machinekit/issues/202