[added to the 4.1 stable tree] x86/alternatives: Fix optimize_nops() checking