Make sure build_SYS_str_reasons() preserves errno