South Koreans headed to the polls for local elections, widely seen as a test of President Lee Jae Myung's first year in office.