Warriors lock up former lottery pick to big extension