Local Control of Polarization and Geometric Phase in Thermal Metasurfaces