Implement setsockopt on Socket