[GH #909] Implement Socket.{get,set}sockopt methods