Fixed OcclusionQuery crashing on secondary thread on Mac