Issue 13000 - Casts should be removed to utilize features of inout

https://issues.dlang.org/show_bug.cgi?id=13000

Apply `inout` on function return type.
The element type of `set` field `fd_set_type` and `socket_t` are incompatible types, so we cannot remove cast here.