Fix error in consumer.py test against max_buffer_size

Was using max(buf_size * 2, max_buf_size), which could result in a new
buffer size which exceeded the specified max_buffer_size by
(max_buffer_size - 1) bytes.