libhwcomposer: Backport vsync module from Android 4.2 display HAL

Signed-off-by: Sultanxda <sultanxda@gmail.com>