[Web] Avoid unnecessary data copy for pre-allocated tensors (#25571)
### Description
Ensure all pre-allocated tensors do not trigger unnecessary data
copying. e.g. the WebNN EP always binds its tensor to 'ml-tensor'. In
such cases, the tensor ID might change after binding, but copying data
for these tensors should still be avoided.
### Motivation and Context
This improves efficiency and avoids redundant operations.