[BUGFIX] _LOCALIZED_UID information is lost

This patch improves on the previous one, in particular
taking into account the fact that the _LOCALIZED_UID field
must be differentiated for each table in case there are
JOINs in the query.

Resolves: #57155
Releases: 1.10
Change-Id: Ibc95d87641cd9640d4588692d60c54bb2e842166
Reviewed-on: https://review.typo3.org/29961
Reviewed-by: Francois Suter
Tested-by: Francois Suter