[kernel|gen-tcp-socket] Made shutdown properly bug-compat with inet
[kernel|gen-tcp-socket] Made shutdown properly bug-compat with inet

The shutdown operation is only performed (in the inet driver)
if the socket is connected. Otherwise {error, enotconn} is
explicitly returned.

OTP-17156

erlang/otp,emacsmirror/erlang,bjorng/otp,erlang/otp,dgud/otp,ferd/otp,ferd/otp,uabboli/otp,rlipscombe/otp,vinoski/otp,ferd/otp,getong/otp,rlipscombe/otp,getong/otp,getong/otp,ferd/otp,erlang/otp,ferd/otp,ferd/otp,jj1bdx/otp,jj1bdx/otp,vinoski/otp,bjorng/otp,emacsmirror/erlang,isvilen/otp,rlipscombe/otp,g-andrade/otp,ferd/otp,potatosalad/otp,ferd/otp,emacsmirror/erlang,potatosalad/otp,getong/otp,mikpe/otp,getong/otp,mikpe/otp,bjorng/otp,getong/otp,uabboli/otp,dumbbell/otp,g-andrade/otp,emacsmirror/erlang,jj1bdx/otp,dumbbell/otp,dumbbell/otp,uabboli/otp,isvilen/otp,dgud/otp,bjorng/otp,bjorng/otp,dumbbell/otp,isvilen/otp,emacsmirror/erlang,uabboli/otp,rlipscombe/otp,vinoski/otp,g-andrade/otp,g-andrade/otp,g-andrade/otp,isvilen/otp,g-andrade/otp,potatosalad/otp,jj1bdx/otp,vinoski/otp,rlipscombe/otp,isvilen/otp,getong/otp,dgud/otp,mikpe/otp,uabboli/otp,erlang/otp,dumbbell/otp,emacsmirror/erlang,erlang/otp,uabboli/otp,bjorng/otp,emacsmirror/erlang,dgud/otp,rlipscombe/otp,isvilen/otp,potatosalad/otp,jj1bdx/otp,erlang/otp,dumbbell/otp,ferd/otp,erlang/otp,bjorng/otp,erlang/otp,isvilen/otp,mikpe/otp,bjorng/otp,jj1bdx/otp,isvilen/otp,dgud/otp,emacsmirror/erlang,rlipscombe/otp,g-andrade/otp,dumbbell/otp,dgud/otp,mikpe/otp,potatosalad/otp,rlipscombe/otp,mikpe/otp,g-andrade/otp,vinoski/otp,rlipscombe/otp,vinoski/otp,jj1bdx/otp,emacsmirror/erlang,vinoski/otp,mikpe/otp,getong/otp,dgud/otp,jj1bdx/otp,vinoski/otp,uabboli/otp,mikpe/otp,g-andrade/otp,isvilen/otp,bjorng/otp,bjorng/otp,vinoski/otp,potatosalad/otp,dgud/otp,dgud/otp,isvilen/otp,dgud/otp,getong/otp,erlang/otp,jj1bdx/otp,potatosalad/otp,emacsmirror/erlang,potatosalad/otp,potatosalad/otp,rlipscombe/otp,erlang/otp,g-andrade/otp,uabboli/otp,dumbbell/otp,mikpe/otp,vinoski/otp,dumbbell/otp,mikpe/otp,jj1bdx/otp,uabboli/otp,potatosalad/otp,getong/otp,dumbbell/otp