draw-wakelock: cache flag and version check to avoid perf regression

Flag: android.view.flags.disable_draw_wake_lock
Test: https://android-build.corp.google.com/builds/abtd/run/L06400030005046664
Bug: 350697662
Change-Id: Ib49a996bafbb483f5dec7d1cd7bce4632225aa31
1 file changed