Fixed CamCapture thread problem. Deadlock occured in some scenarios when releasing the CamCapture object.