be explicit about using the right id for getting sync logs

- fixes some odd race conditions in tests where two sync logs were
  created with the exact same timestamp and the wrong one would get
  referenced