[JIT/x86] Fix LinearScan::allocateRegisters (#26649)