Parallelize base tile generation

From http://trac.osgeo.org/gdal/ticket/4379