. add idempotency #ifdef . avoid sloppy common-style external declaration.
Add range check for setrunelocale since it can be called directly. Remove _startup_setlocale compatibility function Should go into 2.2