[PATCH MANUALSEL 5.18 1/7] x86/nmi: Make register_nmi_handler() more robust