8048193: [tests] Replace JPS and stdout based PID retrieval by Process.getPid()

Reviewed-by: sla
15 files changed