Fix hijacking for ARM/ARM64/x86 on Unix (#20042)