Gralloc: fix compilation with QCOM Board Service Package (BSP) enabled

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Fix vsync for some devices with 3.4 kernel
libgralloc: Fix bad usage of VSYNC_CTRL && Add error return

Change-Id: If707c907bd0d386baadf5e99a25bdf8e8b3dbe97