fix flaky opengl test

- add CountDownLatch to make sure that chekc is done after action is done
- change error check to check if error or not rather than checking
  specific error code
- change  test_glAttachShaders_programobject_attach_fragshaderobject to be
  expecting NO_ERROR as the operations are valid

Change-Id: Ia4c54b03a1b3312728ed348891fb031550b29b05
17 files changed