android: Rewrite GLThread to trash objects as little as possible

Change-Id: I6a0042e2a1b5d98fbf5aa8c64b67a9422f8956a3