gltrace: Fix state update race condition.

The GL State is updated in reaction to user selections, and
should be performed only in a synchronized block.

Change-Id: Ieeaba4fd5a088b5b9e85a21fb6738c214d6f8c01
1 file changed