anv: fix buffer marker cache flush issues on MTL
What does this MR do and why?
I believe we could avoid the flushing on MTL once we figure out the L3 configuration to include CS : #10603
This MR includes !27597 (merged) (due to the helper function) but I can make a version without that dependency.