Fix kinect deadlock