Merge pull request #800 from rouault/tier1_optimizations_multithreading_pterm_check