Sleep thread at socket send