Finite-temperature Green's functions by stochastic quantization