Fix bug that the incorrect reinitialization of dev->thread.completion causes deadlock