[cppmyth] Prefer shared pointer

Transfer shared pointer instead copying.