[socket-nif|test] Updated test case api_b_open_and_close
[socket-nif|test] Updated test case api_b_open_and_close

The test case tried to validate the (socket option) protocol,
which is not actually available on OpenBSD. So, add a check
if the option is supported.

OTP-14831

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