gralloc: fixes for N7100 kernel rebase

gralloc_alloc_buffer()
gralloc_lock()
gralloc_unlock()

Change-Id: Ib935c94f1d216b6a57b300f5afb1c44724d2b05b
AdaptiveBacklight: fix illegal value exception.

Change-Id: I8ea84451c8dd4be35a2d2e62547fc81a2b704dd1