wayland: add {surface,layer}_exists(uint32_t) methods