Fix race condition in KGSL devices