Apply the transaction to the leash before it is sent to the client

Otherwise, applying the transaction later at the server may overwrite
the operations done by the client. For example, the client might hide
the leash immediately when it obtains the control, but the 'show'
operation in createAnimationLeash() has not been applied yet, so the
'show' operation at the server side can overwrite the 'hide' operation
at the client side later.

Fix: 153104643
Test: Steps in the bug.
Change-Id: I9b3480ba17c2cd5396aed8a5412f2c8ba265db68
1 file changed