Remove some more direct uses of wl_resource

Commit b8e5fe1c99 tried to remove any direct uses of wl_resource so
that it can eventually become opaque but it missed some. These ones
were found by temporarily hacking wayland-server.h to remove the
definition of wl_resource.