Fix a bug in ConvertMlirSrcToBEF where disable_optional_sections is ignored.
Fix a bug in ConvertMlirSrcToBEF where disable_optional_sections is ignored.

PiperOrigin-RevId: 330989706

tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime