foreign_ptr: introduce make_local_and_release()
foreign_ptr: introduce make_local_and_release()

Sometimes remote data has to be copied to local cpu, but if data is
already local copy can be avoided. Introduce helper function that moves
or copies data depending on origin cpu.

chunshengster/seastar,aruanruan/scylla,asias/scylla,syuu1228/seastar,linearregression/seastar,stamhe/seastar,raphaelsc/scylla,shaunstanislaus/scylla,leejir/seastar,capturePointer/scylla,printedheart/seastar,kjniemi/seastar,bzero/seastar,koolhazz/seastar,eklitzke/scylla,eklitzke/scylla,phonkee/scylla,dreamsxin/seastar,jonathanleang/seastar,kjniemi/seastar,printedheart/seastar,tempbottle/seastar,linearregression/scylla,dwdm/scylla,glommer/scylla,dwdm/seastar,norcimo5/seastar,hongliangzhao/seastar,sjperkins/seastar,glommer/scylla,tempbottle/seastar,shaunstanislaus/scylla,aruanruan/scylla,guiquanz/scylla,wildinto/seastar,bzero/seastar,eklitzke/scylla,dwdm/seastar,raphaelsc/scylla,linearregression/seastar,acbellini/scylla,shaunstanislaus/scylla,scylladb/scylla-seastar,mixja/seastar,chunshengster/seastar,stamhe/seastar,tempbottle/scylla,kjniemi/scylla,anzihenry/seastar,kjniemi/scylla,wildinto/seastar,xtao/seastar,duarten/scylla,shyamalschandra/seastar,scylladb/scylla,wildinto/scylla,victorbriz/scylla,anzihenry/seastar,respu/scylla,scylladb/seastar,hongliangzhao/seastar,senseb/scylla,rentongzhang/scylla,asias/scylla,mixja/seastar,tempbottle/scylla,cloudius-systems/seastar,bowlofstew/scylla,duarten/scylla,acbellini/scylla,acbellini/scylla,sjperkins/seastar,cloudius-systems/seastar,stamhe/scylla,xtao/seastar,linearregression/seastar,stamhe/scylla,gwicke/scylla,kjniemi/seastar,dreamsxin/seastar,scylladb/scylla-seastar,bowlofstew/seastar,phonkee/scylla,dreamsxin/seastar,avikivity/scylla,stamhe/seastar,avikivity/seastar,raphaelsc/scylla,glommer/scylla,justintung/scylla,respu/scylla,jonathanleang/seastar,tempbottle/scylla,leejir/seastar,capturePointer/scylla,senseb/scylla,guiquanz/scylla,hongliangzhao/seastar,cloudius-systems/seastar,kjniemi/scylla,linearregression/scylla,acbellini/seastar,wildinto/seastar,avikivity/seastar,wildinto/scylla,leejir/seastar,tempbottle/seastar,shyamalschandra/seastar,wildinto/scylla,norcimo5/seastar,dwdm/scylla,kangkot/scylla,gwicke/scylla,rluta/scylla,bowlofstew/seastar,syuu1228/seastar,bzero/seastar,jonathanleang/seastar,joerg84/seastar,senseb/scylla,rentongzhang/scylla,dwdm/scylla,acbellini/seastar,sjperkins/seastar,flashbuckets/seastar,koolhazz/seastar,scylladb/scylla,joerg84/seastar,phonkee/scylla,koolhazz/seastar,scylladb/scylla-seastar,victorbriz/scylla,anzihenry/seastar,flashbuckets/seastar,xtao/seastar,asias/scylla,bowlofstew/scylla,aruanruan/scylla,scylladb/scylla,gwicke/scylla,bowlofstew/seastar,scylladb/scylla,rentongzhang/scylla,guiquanz/scylla,joerg84/seastar,shyamalschandra/seastar,justintung/scylla,duarten/scylla,acbellini/seastar,flashbuckets/seastar,syuu1228/seastar,avikivity/scylla,bowlofstew/scylla,avikivity/seastar,scylladb/seastar,chunshengster/seastar,mixja/seastar,rluta/scylla,rluta/scylla,kangkot/scylla,capturePointer/scylla,norcimo5/seastar,printedheart/seastar,dwdm/seastar,stamhe/scylla,avikivity/scylla,respu/scylla,justintung/scylla,scylladb/seastar,victorbriz/scylla,linearregression/scylla,kangkot/scylla