Good point! Would a short dip in boiling water prevent this?
I grow garlic (about 80 heads per year). One of the challenges growing garlic is preserving it. We harvest in late July and cure the heads by drying. When dry we bag them and store in a cool dark place like the vegetable drawer of our 38F fridge. Regardless, about January the heads start showing signs of sprouting. The now green centers are a bit bitter and best discarded. Still, it is a race against time. For Christmas my lovely wife bought me a book on making pickled vegetables using a brine solution. I tried this with garlic and it seems to work very well. The garlic retains its flavor but drops the sharp bite. Furthermore, it becomes a little salty/acidic and botulism can't survive in acidic conditions. So, my
GUESS is that the now acidic garlic would not develop botulism in anaerobic conditions such as under olive oil. Here is how you pickle garlic or for that matter any other vegetable:
Loosely pack the husked garlic cloves in a jar.
Fill the jar with a salt brine made from 150 grams of salt per gallon of water. (use non-chlorinated water. cheese salt is OK but sea salt is better)
Rig a "hold-down" to keep the garlic submerged.
Loosely cover to keep out dust and allow the carbon dioxide produced to escape.
Place is a dark room temperature (68-72F) place for about 2 weeks until the pH drops to 4.5 or below.
You don't need to add any culture to this. The air is full of spores that operate on sugars in anaerobic conditions (under the brine) to produce our old friend lactic acid with CO2 as the by-product. When the desired pH is achieved you can refrigerate and the reaction stops as it is too cold. Keep the lid loose until the contents chill to prevent developing pressure.
Sauerkraut is made in a similar fashion but instead of brine about 1.5-2.0% salt is added to the shredded cabbage, which will give off enough water to make its own brine. Knead the cabbage and salt together a half dozen times over an hour in a large bowl and then pack the jars as above.