mm: fix up numa read-only thread grouping logic