GEOS-5723 backport to 2.2.x enterprise - support for identical layer names in different workspaces