Fix segfault in TestFileJpeg.test_quality_keep on win-amd64