Internal libtiff: fix old regression where JPEG quantization tables were emitted in each tile.strip instead of only in the JPEGTABLES tag

git-svn-id: https://svn.osgeo.org/gdal/trunk@28147 f0d54148-0727-0410-94bb-9a71ac55c965
GTiff: avoid TIFF directory to be written (at end of file) when  creating a JPEG-in-TIFF file

git-svn-id: https://svn.osgeo.org/gdal/trunk@28148 f0d54148-0727-0410-94bb-9a71ac55c965