[Mosaic] Verify that the target IDs are provided in remote DMAs
Adds an extra verification check. Since the source semaphore is used only for remote DMAs, we should check that device or core IDs are also provided when source semaphore is provided.
PiperOrigin-RevId: 707675228