x86/cpufeature: Add helper macro for mask check macros