Add autoflash thread to resolve flash never timeout issue.