[PATCH v2 4/8] sms: factor out 'remove entry' from tx_finished()