Fix sync service hang.