cherry-pick musl 1.1.3 wcsxfrm.c, fixes #2473