mesh: Transport seg with few adv bufs
mesh: Transport seg with few adv bufs

Fixes bug where the transport segmented tx would decrement the attempt
counter every time it ran out of buffers. If transport ran out of
buffers 4 times before the sending could complete, the transfer would
end prematurely.

Moves the attempt decrement to only execute when all segments have been
sent.

this is port of 0aeba0eb1204b65179d8712e5b849f8ffb0ad530

apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble