memcg: make it work on sparse non-0-node systems