ARM: Add a mechanism for faking CPU time elapsed during HLE.

- Also a few cleanups.
GPU: Further improve synchronization.