Ensure ownership of src in SkPathRef::CreateTransformedCopy

When the src and dst are the same and other threads own all
other refs to the pathref the existing code is unsafe.

Change-Id: I44810877b98d9a365fe82232e3e2288a7111a1ff
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287616
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
1 file changed