### Summary

I just updated to ansible core `2.12.3` via pip from ansible `2.11.9` and was confronted with weird issues during one of my plays, which tries to ensure a proper local git branch. It complained about a parsing error while navigating a git submodule path. After looking and poking around a little I found [this line of code](https://github.com/ansible/ansible/blob/0c4c18bc04c562755a368df67fce943ca15418ee/lib/ansible/modules/git.py#L546) beeing responsible for the parsing issue, as my machine uses de_DE as locale. This changes the git output from the expected `Entering <path>` to `Betrete <path>` and makes the parser fail. I did not perform a system update along to the ansible upgrade, I am sure it was working with the older ansible version (as I successfully rolled back) and the update caused the break. I see two issues here. First the parser expects english output, which might not be always provided. I tried to think about a solution, but the response of the actually invoked command `git submodule foreach` leaves no room for alternative methods of recognition. Secondly ansible seems to have used some sort of private environment where the locale must have been set to english somehow. Otherwise my play should never have worked at all. Regarding the latter case I really wonder what broke in the recent update.

### Issue Type

Bug Report

### Component Name

git

### Ansible Version

```console
$ ansible --version
ansible [core 2.12.3]

NOTE: More informations no longer available as I downgraded already to get back to a working state again.
```


### Configuration

```console
no output
```


### OS / Environment

Ubuntu 20.04.4 LTS

### Steps to Reproduce

<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)
- hosts: all
  gather_facts: false
  any_errors_fatal: true
  run_once: true # Required as this runs locally
  tasks:
    - name: Perform pre-run checks
      connection: local
      block:
        # Check if local repository is on most recent commit
        - name: Checkout devops branch '{{ git_config.branch }}', force restart (abort play) if branch had to be changed
          ansible.builtin.git:
            clone: false # Do never clone, this should be run from within collection
            dest: "{{ git_config.path }}"
            repo: "{{ git_config.repo }}"
            version: "{{ git_config.branch }}"
          register: git_status
          failed_when: git_status.failed or git_status.changed # Module failure (e.g. dirty) or branch was changed/pulled
```
As long as an actual repository containing at least one submodule is given, the error will be triggered if the machine is set to a language different than english.


### Expected Results

I expected the module to ensure I am on the proper branch.

### Actual Results

```console
The module outputs the following error (abbreviated to prevent cluttering):

Unable to parse submodule hash line: Betrete 'provisioning/roles/ansible-redis'
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
description: List of warnings if requested features were not available due to a too old git version.
    returned: error
    type: str
    sample: git version is too old to fully support the depth argument. Falling back to full checkouts.
git_dir_now:
    description: Contains the new path of .git directory if it is changed.
    returned: success
    type: str
    sample: /path/to/new/git/dir
git_dir_before:
    description: Contains the original path of .git directory if it is changed.
    returned: success
    type: str
    sample: /path/to/old/git/dir
'''
import filecmp
import os
import re
import shlex
import stat
import sys
import shutil
import tempfile
from ansible.module_utils.compat.version import LooseVersion
from ansible.module_utils.common.text.converters import to_native, to_text
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.common.locale import get_best_parsable_locale
from ansible.module_utils.common.process import get_bin_path
from ansible.module_utils.six import b, string_types
def relocate_repo(module, result, repo_dir, old_repo_dir, worktree_dir):