libgralloc: Fix bad usage of VSYNC_CTRL && Add error return

Change-Id: If707c907bd0d386baadf5e99a25bdf8e8b3dbe97