ctl: fix crash when listing in struc format
 - example: kamcmd core.sockets_list
dialog: lock for updating the cseq

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