The Multifaceted Roles of B Cells in the Thymus: From Immune Tolerance to Autoimmunity