[PATCH 4.14 179/193] media: vimc: stream: fix thread state before sleep