Fix condition for first double-sync, fix use-after-free when it happens
Fix condition for first double-sync, fix use-after-free when it happens

simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync