sync: Avoid use of boost::serialization::null_deleter

Refs: #2072

Change-Id: Ie860c2d09d38025750be056d03d71b5de58f1c5b