net: context: Connect callback was set too late
net: context: Connect callback was set too late

We need to set the connect_cb for the context before sending SYN packet.
This is required if we have a loopback connection in which case everything
is happening more or less synchronously and the connect_cb would not be
called in this case because its value would still be null.
For remote network connections this patch makes no difference.

Change-Id: Id7f837cd9e81cd79c4666c98cae84f6cb1a77af0
Signed-off-by: Jukka Rissanen <f9f077d1da4c7aa947f9864fa5a28c3588f6a45d@linux.intel.com>

bboozzoo/zephyr,zephyrproject-rtos/zephyr,bboozzoo/zephyr,pklazy/zephyr,fbsder/zephyr,explora26/zephyr,erwango/zephyr,rsalveti/zephyr,zephyrproject-rtos/zephyr,runchip/zephyr-cc3220,kraj/zephyr,fbsder/zephyr,pklazy/zephyr,holtmann/zephyr,ldts/zephyr,bboozzoo/zephyr,explora26/zephyr,explora26/zephyr,zephyriot/zephyr,erwango/zephyr,punitvara/zephyr,galak/zephyr,bboozzoo/zephyr,galak/zephyr,aceofall/zephyr-iotos,runchip/zephyr-cc3220,ldts/zephyr,Vudentz/zephyr,runchip/zephyr-cc3220,nashif/zephyr,aceofall/zephyr-iotos,punitvara/zephyr,bigdinotech/zephyr,Vudentz/zephyr,punitvara/zephyr,rsalveti/zephyr,zephyriot/zephyr,bigdinotech/zephyr,fbsder/zephyr,rsalveti/zephyr,sharronliu/zephyr,nashif/zephyr,finikorg/zephyr,ldts/zephyr,galak/zephyr,aceofall/zephyr-iotos,zephyriot/zephyr,nashif/zephyr,kraj/zephyr,sharronliu/zephyr,pklazy/zephyr,GiulianoFranchetto/zephyr,pklazy/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,galak/zephyr,finikorg/zephyr,holtmann/zephyr,fractalclone/zephyr-riscv,erwango/zephyr,rsalveti/zephyr,GiulianoFranchetto/zephyr,bigdinotech/zephyr,ldts/zephyr,mbolivar/zephyr,erwango/zephyr,rsalveti/zephyr,kraj/zephyr,Vudentz/zephyr,bboozzoo/zephyr,galak/zephyr,bigdinotech/zephyr,explora26/zephyr,fractalclone/zephyr-riscv,fractalclone/zephyr-riscv,mbolivar/zephyr,pklazy/zephyr,holtmann/zephyr,mbolivar/zephyr,zephyriot/zephyr,sharronliu/zephyr,Vudentz/zephyr,nashif/zephyr,sharronliu/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,erwango/zephyr,runchip/zephyr-cc3220,punitvara/zephyr,runchip/zephyr-cc3220,bigdinotech/zephyr,sharronliu/zephyr,fractalclone/zephyr-riscv,finikorg/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,ldts/zephyr,kraj/zephyr,mbolivar/zephyr,GiulianoFranchetto/zephyr,fbsder/zephyr,punitvara/zephyr,finikorg/zephyr,holtmann/zephyr,aceofall/zephyr-iotos,kraj/zephyr,mbolivar/zephyr,explora26/zephyr,nashif/zephyr,fractalclone/zephyr-riscv,holtmann/zephyr,fbsder/zephyr,zephyriot/zephyr