KAFKA-16630: Fix flaky classic consumer poll test (#22787)