[esock] Hardening the self utility function
[esock] Hardening the self utility function

Make sure we don't fall on our own sword when constructing
the self term (check if env is NULL).
Also some cosmetic editing.

OTP-16314

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