Gibraltar quarrel shows Brexit could herald the final demise of the British Empire