46 workers at a J Barbour & Sons factory in the Scottish Borders are to lose their jobs when the plant shuts at the end of this month.