x86/alternatives: Fix optimize_nops() checking