Check refresh_rate every frame in thread wrapper.