implement get_pid_cgroup in proxy

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
close sockfd on error paths in *_scm

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>