system: return the pid in run_cmd_bg()

In case we want to wait for the forked process or to kill it, we
need its pid.
system: add kill_proc() and wait_proc()