libct/cg: IsCgroup2HybridMode: don't panic
libct/cg: IsCgroup2HybridMode: don't panic

In case statfs("/sys/fs/cgroup/unified") fails with any error other
than ENOENT, current code panics. As IsCgroup2HybridMode is called from
libcontainer/cgroups/fs's init function, this means that any user of
libcontainer may panic during initialization, which is ugly.

Avoid panicking; instead, do not enable hybrid hierarchy support and
report the error (under debug level, not to confuse anyone).

Basically, replace the panic with "turn off hybrid mode support"
(which makes total sense since we were unable to statfs its root).

Signed-off-by: Kir Kolyshkin <3a017b8ddb3f9cf3e4a59978b004111bdeb97f08@gmail.com>

opencontainers/runc,kolyshkin/runc,opencontainers/runc,opencontainers/runc,opencontainers/runc,kolyshkin/runc,kolyshkin/runc,kolyshkin/runc