Gas treatment protection of metallic lithium anode