MDL-42493 revert nasty DB meta caching hack that was trying to work around shutdown issues

The original problem was resolved via new core shutdown handler support.