Simplify atomicity of socket creation in bind.