server: Make the select cookie a client_ptr_t instead of a void pointer.