[PATCH openEuler-22.03-LTS-SP1] cgroup: Fix potential overflow issue when checking max_depth