Around 20 libraries have been earmarked for closure across Scotland.