[sr-dev] [kamailio/kamailio] dispatcher: fix syncronization problem with (#1650)