[PATCH 4.14 12/20] x86/speculation: Add a common function for MD_CLEAR mitigation update