agent: Minor fix for get_client_pid.