Run write sent message in separate ::Thread

When sending message during a long poll on the same source as the message is sent to (at the moment only possible with the gmail source), the write message will be waiting for the poll to finish (because of the source poll lock) and the user must wait for it to finish. Better run the store message in a separate thread and which will write the message once the poll is finished.