(hard_locale): Revert last change -- it was simply wrong. That set_locale call must not have any side effects. From Paul Eggert.