swscale: Execute sfence and emms depending on runtime flags.