[PATCH 5.1 353/405] media: vimc: stream: fix thread state before sleep