add set runtime option for C API in GenAI (#22748)
### Description
Add Set runtime option for C API in GenIA
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->