fix bogus lazy allocation in ctermid and missing malloc failure check
[musl] / crt / Scrt1.c