ioapic: Fix error handling in realize()