net: socket: fix 'sock' uninitialized warnings