Ok thanks. I found the commit id:
https://git.yoctoproject.org/poky/commit/?id=21559199516a31c7635c5f2d874eaa4a92fff0e5
Unfortunately, it will probably take some time until the solution is included on all our build machines.
Until then, we fixed our setup by using PSEUDO_UNLOAD=1 before any git command.