libedit: Revert locale modification that modifies locale