Fix a regression introduced in GH-101251 for 3.12, causing gzip.GzipFile.flush to not flush the compressor (nor pass along the zip_mode argument).