[PATCH OLK-5.10] cgroup: Fix potential overflow issue when checking max_depth