safer approach for detecting duplicate sync runs