discovery: stage 5: use pid_is_running() function

Now, we can replace the ptrace()-based check if the game is still
running in the discovery stage 5. Using waitpid() with WNOHANG is
much better suited for that purpose.