Fixed out-of-order message deadlock

- made sync process complete in full before listener transmits
  new messages added to its recv channel
moved identical_to
Merge pull request #45 from LeepsLab/router-deadlock

Fixed deadlock caused by out of order messages