Change in osmo-msc[master]: smpp: Fix use-after-free bug when ESME disconnects but has write pending