Ainge: Celtics had waiver claim on Lin