[PATCH 5.4 007/388] drm/amdkfd: Fix race in gfx10 context restore handler