LPS-50484 PortalImpl.getUniqueElementId() may end up in endless loop, because it isn't thread safe