Minor fixes

- avoid races on socket open;
- honor inets:setopts/2 result;
- comment fix.