Fix race condition on accessing m_time_of_day_speed causing day night race on some architectures