SurfaceFlinger: Ensure relatives are not detached with children.

A misapplication of traverseInZOrder...unfortunately we will have to watch
out for this. This code was also mistakenly accessing mDrawingState.

Test: Transaction_test.cpp
Change-Id: I6aa51885f52edff89f1ed5512408bf0a5a227af5
2 files changed