guardianctrl: Fix function call to get process-id.