add mutex in media_engine to prevent double read in video thread
follow up to last commit