[PATCH 4.19 256/276] media: vimc: stream: fix thread state before sleep