src: Making shared_ptr<ndn::Data> to put to NFD

Change-Id: I2c8b0a322cbe2a848ba2be7d9e9639237a08878a