[PATCH 5.0 305/346] media: vimc: stream: fix thread state before sleep