virttest.utils_misc: support killing a process with pattern

As subject.