Add attributes to `std.socket`

`std.socket` now has `@safe` public API.

Also added few fixes.
> This is not an issue, we don't maintain ABI compatibility.

I'm aware of the latter, but that doesn't mean it's not something we should keep in mind when there's so little else to tip the balance around this issue.