fix(pid): add a lock to ensure one agent is running
use pid_t
Merge pull request #88 from virgo-agent-toolkit/fixes/pidfile_lock

fix(pid): add a lock to ensure one agent is running