memcg: sync flush only if periodic flush is delayed