Don't make unboxed closures implicitly copiable

The fix just checks if the bound is `Copy` and returns an `Err` if so.

Closes: #19817