Create and destroy PThreadLocks globally
Create and destroy PThreadLocks globally

* If we destroy them at the end of android_main we might destroy them
  while the thread is running and cause incorrect code flows where we
  try to join and restart the thread while it's blocking.
* Don't get me started on why android_main exits when you get alt-tabbed
  away from...

TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,baldurk/renderdoc,etnlGD/renderdoc,michaelrgb/renderdoc,Zorro666/renderdoc,googlestadia/renderdoc,cgmb/renderdoc,baldurk/renderdoc,cgmb/renderdoc,cgmb/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,baldurk/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,michaelrgb/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,etnlGD/renderdoc,michaelrgb/renderdoc,Zorro666/renderdoc,etnlGD/renderdoc,googlestadia/renderdoc,etnlGD/renderdoc,cgmb/renderdoc,michaelrgb/renderdoc,etnlGD/renderdoc,googlestadia/renderdoc,Zorro666/renderdoc,baldurk/renderdoc,baldurk/renderdoc,michaelrgb/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,cgmb/renderdoc,Zorro666/renderdoc,googlestadia/renderdoc,TurtleRockStudios/renderdoc_public