Ensure that usage used when locking are passed during allocation time

With the introduction of b/402219686, gralloc will check that usage
flags passed when locking a buffer match the ones passed when allocating
the buffer.

Test: atest CtsVirtualDevicesCameraCtsTestCases
Test: atest CtsVirtualDevicesCameraTestCases
Fixes: 419737246
Flag: EXEMPT Bug fix
Change-Id: Iac3aad6a55b352a26b76e1967df48701dfc4ad13
3 files changed