hwc: Acquire and Release mDrawlock properly to prevent deadlock

HDMI Online and offline event, UEvent thread acquires mDrawLock and
mStateLock sequentially. At the same time surfaceflinger draw thread
acquires mStateLock and mDrawLock in the reverse sequence which
results in deadlock condition. So release the mDrawLock immediately
after modifying the hwc context variables in UEvent thread.

Change-Id: I6a240294a28d8e9a9aca6f98522c7265b3cad4fa
1 file changed