erts: Fix socket lock order in nif_connect()
erts: Fix socket lock order in nif_connect()


Lock write mutex before read mutex as done in other places.

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