split get_pid_cgroup into scm and nonscm versions

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