Add attributes to `std.socket`

`std.socket` now has `@safe` public API.

Also added few fixes.
IMO the fact that it adds three characters is enough to tip the scale.