Fix CPU LRN int overflow issues (#27886)
### Description
<!-- Describe your changes. -->
Fix int overflow issues in original implementation.
Add some additional tests.
### 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. -->
Fix some int overflow issues.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>