fix crash on release wifi lock before stream is prepared