Human activity and wildfires have turned highly protected forests into net sources of carbon, a study suggests.