memcg: use static branches when code not in use