HPCC-9304 Modify code based on review comments

Change PID type to unsigned; remove old setAgentPID(); rename a
'component' to 'instance'.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>