gpu: Refactor GpuMemoryBuffer framework for multi-process support.

Refer to:
http://review.cyanogenmod.org/#/c/54291/