SA close to settling teachers' dispute