Pico-Kelvin thermometry and temperature stabilization using a resonant optical cavity