Can you provide more details on what the UART thread is doing?
Does this follow the client, or it is always the second client? Can you try clients in different order?
Also, I sniff of the failed connection attempt may be helpful.
I resolved this problem. "wiced_packetd_delete()" function should not be called even if packet had been sent successfully.I had missed it.