media: init debug category before starting thread