Fix race condition on accessing m_time_of_day_speed causing day night ra...

...ce on some architectures