[sr-dev] git:master: tm: lock replies before restoring flags for onreply_route