Store SMPP sequence number mapping before sending PDU

This is the second part of #771.