Geometric phases of mesoscopic spin in Bose-Einstein condensates