[build] fix build on mac (#25270)
### Description
Fixes build on macOS.
always include `"core/graph/onnx_protobuf.h"` before including other
onnx/protobuf headers.
```
.../build/MacOS/Debug/_deps/protobuf-src/src/google/protobuf/parse_context.h:328:47: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
328 | int chunk_size = buffer_end_ + kSlopBytes - ptr;
| ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
```