sc_send_buffer(): Return an error on short writes.