Lava that has cooled into black, bubbly basalt might one day jump into action to help fight one of humanity’s biggest challenges: rising levels of carbon dioxide.