Fun fact: you don't have to bury it, you just have to not burn or decompose it. Hence why wood used in architecture functions as a carbon sink. [0]
[0] https://en.wikipedia.org/wiki/Carbon_sink#Artificial_carbon_...
[0] https://en.wikipedia.org/wiki/Carbon_sink#Artificial_carbon_...
Theoretically it will decompose someday, but at the point where we have significantly less buildings I assume either other bad things have made this less of a concern, or we'll be advanced enough to recapture that carbon in other ways.
...but yes, if you're willing to "waste" the resources, just thoroughly burying wood away from air should also work.