Remove redundant attributes

Required by: https://github.com/D-Programming-Language/dmd/pull/3696
The return statement returns `socket_t[]`, so this change is correct.