Fixes to deleting older sync sessions v2

Post-merge tweaks to #142, to avoid the syncsession logs from growing unbounded on distributed server.