cc.c: Update state before calling net_sendfile()
cc.c: Update state before calling net_sendfile()

This fixes an assertion failure in xfer_log_add(), since net_sendfile()
may run the callback immediately when length = 0.

srijan/ncdc,Tilka/ncdc,Tilka/ncdc,srijan/ncdc,srijan/ncdc