dialog: lock for updating the cseq

- race can happen on processing two requests at the same time within
  same dialog