Fixes#20625
However, it's not clear why. As discussed in #20625, might just try to
get rid of many of these replacement functions. The problem with the copy ones
is that often we want to take action *after* the copy (for GPU copy
detection purposes) and without replacing the whole function that's a
bit hard (but doable).