mingw: fix possible buffer overrun when calling `GetUserNameW()`