Lynn becomes first 6 game winner in Cards' victory over D-backs