sometimes /proc/1/cgroup is not readable

Prevent the code from throwing fatal exceptions when /proc/1/cgroup
exists but is not readable (which can happen in VPS systems).