Add attributes to `std.socket`

`std.socket` now has `@safe` public API.

Also added few fixes.
Oh nevermind, I see you have it at the top of the file.