[PATCH OLK-6.6 51/57] md: fix stopping sync thread