Fixup 3851 - Buffer length needs to fit size_t.max

See [this comment](https://github.com/D-Programming-Language/druntime/pull/332#discussion_r3049812).