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

Change-Id: I06bff1f4847bea33d5776fd6f790ae4d95792ba6