libsync: add support to new Sync API am: 61ab0d74d2 am: 8dc6cc921b
am: 4c33794e7d

Change-Id: I9c8e8ea4853712aa0196bed886a92e115cea023a