test-lib: remove ancient wait_for_pid() function