[PATCH OLK-6.6] memcg: avoid dead loop when setting memory.max