libmp3lame: use the correct remaining buffer size when flushing