Mass Formula on the Basic Loci of Unitary Shimura Varieties