Two schools in County Antrim have been closed in recent months due to concerns over their buildings.