[ONNX] Fix onnx gather shape inference
Previous code sets `only_rank_available=true` for Gather, resulting in overriding actual inferred shape values with symbols.
Fixes #68003
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73607
Approved by: https://github.com/fatcat-z, https://github.com/garymm