x86/alternatives: Macrofy lock prefixes to work around GCC inlining bugs