NXDRIVE-43: Lock sqlite when sync is paused
NXP-14388: Fix to avoid launch of sync thread if server is not set