Add a function to get delegate options using the C API.
Add a function to get delegate options using the C API.

- Remove redundant helper function.
- Store the weight cache path inside the delegate and update the internal
  options object to use it.
