seek only when demux thread is running

otherwise may crash