Prevent unsafe thread change of local settings using synfig::ChangeLocale class