memcg: simplify the way memory limits are checked