[PATCH 4.15 044/105] cgroup: fix rule checking for threaded mode switching