git: Update `symlinkPointsToGitDir` version check
The Git 2.45.2, 2.44.2, 2.43.5, and 2.42.3 releases reverted the
symlinkPointsToGitDir
fsck check. To avoid unknown config errors
during testing, update the version check to only apply the configuration
to supported versions.
This change did not make the 17.1 release, therefore Git versions >= 2.45.2 will result in errors. Backport to 17.1 to fix this.