PDI-10848 - Fixed race condition in DatabaseMeta, unit test