[UR] call urGetAdapter before creating a device from native handle (#12619)
This solves the same issues as #12432, but for
`urDeviceCreateWithNativeHandle`. I considered a more generalized
solution (e.g., calling `urGetAdapter` in `piPluginInit`), but I'm not
sure that's worth it considering PI is going away. All the other
`CreateWithNativeHandle` functions require either platform or a device
to already exist.