Revert "Make metadata initialization work in transaction"

This reverts commit 79ecb4384133d2f52ef6ca8a04778397c45d4794.