toolchain/gcc: Backport patch to fix unconditional MULTIARCH_DIRNAME