LPS-48194 Sharding's aggregated SessionFactory proxy breaks spring's threadlocal resource binding

CC @migue @lipusz

For more detailed explanation and discussion see https://in.liferay.com/web/global.engineering/forums/-/message_boards/view_message/3852948