fix #9356 [Security] Logger should manipulate the user reloaded from provider

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9356
| License       | MIT

PR for well explained ticket #9356 by nikolajosipovic

Any feedback welcome, this is my first PR to symfony