cuda sync after ExecuteSubGraph() in if.cc (#13580)
### Description
cuda sync after ExecuteSubGraph() in if.cc
### Motivation and Context
cuda sync after ExecuteSubGraph() in if.cc, to block host until the
stream is complete as fetches will be accessed from CPU