[PATCH 4.14 043/101] cgroup: fix rule checking for threaded mode switching