Foot Locker swings to Q3 profit