DMRECON: fix RefPtr usage in PatchSampler

The previous variant created a second reference counter for the same
object, possibly resulting in a dangling pointer.