LPS-35878 Sharding: It's forbidden to perform queries joining by entities that only contain data in the SQL schema of the shard by default

Applying the same pattern of the issue LPS-35650:
https://github.com/brianchandotcom/liferay-portal/compare/b09d5518ee...fe17934b71