The vortex clustering transition in a confined 2D quantum fluid