MOBILE-1760 sync: Add common synchronization functions
MOBILE-1760 sync: Add common synchronization functions

jnguy054/moodlemobile2,romit19/SOrCEv3,NEEDS-SAL/SOrCEv3,Diaa75/moodlemobile2,bmmg888/moodlemobile2,dpaloucva/moodlemobile2,digidoug/fsdmoodle,mvvkiev/moodlemobile2,testvibid/imaritime,bmmg888/moodlemobile2,MUPC-GH/MobileMoodle3.2.0,NEEDS-SAL/SOrCEv3,beppinu/moodleapp,Andydadra/moodlemobile2,balirwa/logs,testvibid/imaritime,mohitsofat/mobiskool,romit19/SOrCEv3,GonzaloPachecoAlvarez/appteoloyu,balirwa/logs,brenda10campos/GACER1,romit19/SOrCEv3,SathvikEdla/SathvikApp,digidoug/fsdmoodle,mohitsofat/mobiskool,balirwa/logs,romit19/SOrCEv3,bmmg888/moodlemobile2,4emunoz/avcolsub,arahimahmad/moodlemobile2,bmmg888/moodlemobile2,romit19/SOrCEv3,knurmi/MoodleTest,dpaloucva/moodlemobile2,sulzer/moodlemobile2,MUPC-GH/MillikinMobileMoodle2,mvvkiev/moodlemobile2,chester666/moodlemobile,dougrosa/eadinatel,arahimahmad/moodlemobile2,MUPC-GH/MillikinMobileMoodle2,mohitsofat/mobiskool,jnguy054/moodlemobile2,chester666/moodlemobile,knurmi/MoodleTest,chester666/moodlemobile,Diaa75/moodlemobile2,brenda10campos/GACER1,GonzaloPachecoAlvarez/appteoloyu,MUPC-GH/MobileMoodle3.2.0,Andydadra/moodlemobile2,sulzer/moodlemobile2,4emunoz/avcolsub,balirwa/logs,dougrosa/eadinatel,balirwa/logs,arahimahmad/moodlemobile2,marceloalmeidasousa/moodleapp,romit19/SOrCEv3,NEEDS-SAL/SOrCEv3,marceloalmeidasousa/moodleapp,NEEDS-SAL/SOrCEv3,balirwa/logs,SathvikEdla/SathvikApp,NEEDS-SAL/SOrCEv3,NEEDS-SAL/SOrCEv3,sulzer/moodlemobile2,beppinu/moodleapp