LPS-46810 Add support for guest users in the dl-repository-shared jar

Hey Brian,

This is an improvement and it shouldn't be backported. 
This pull depends on (https://github.com/brianchandotcom/liferay-portal/pull/18624)