gralloc: Fix some differences with compatibility code

Change-Id: I0f41ff987b6b3f554e11ea2f259d778c8cee7fa2
Merge branch 'cm-10.2' of https://github.com/CyanogenMod/android_hardware_qcom_display-caf into DJL10.2