msm: kgsl: Fix race in active count wait