Fix usage flags for testWrapHardwareBufferHoldsReference

Fixes an issue where the test was doing CPU access to a gralloc
buffer that did not have CPU_USAGE_WRITE_RARELY set. On some gralloc
implementations it's valid for locking such a buffer to fail, so 
fix the test to conform to gralloc's contract and set the CPU_USAGE_WRITE_RARELY bit.

Bug: 135944408
Test: this
Change-Id: I83eee58ded35c9714ae67b6e729423f7fc3408ab
(cherry picked from commit 35a9dbe51a905ce7faefa22d859466410126c7a1)
1 file changed