And before the evolution of the "out" socket, most dinosaurs had a "down" shoulder socket that did not allow the large range of motion useful for flight.
Map the first appearance of the "out" shoulder socket orientation.
Oops.
Take a good look at the orientation of each shoulder socket. Where did increased outer motion first appear?
Both Velociraptor and Archaeopteryx had a shoulder allowing greater range of motion, so it must have evolved in their most recent common ancestor.