libhwcomposer: support TARGET_NO_HW_VSYNC flag

Change-Id: Id24a2c39bb2520e2af711cb3da35bf9098ba6475
Signed-off-by: Tommy Alex <iptux7@gmail.com>
libgralloc: fix screen loses sync too often

from https://github.com/LOSP/hardware_qcom_display-legacy-caf/commit/35e13632f01d2ccdf04503e2c63c26458a07e57f

Credits: PeterCxy <PeterCxy@outlook.com>, ivan198 <ivan198@gmail.com>

Change-Id: I64b79cb4a6e1d3b74d96277ffcac6f4056912477
Signed-off-by: Tommy Alex <iptux7@gmail.com>