PDI-10848 - Fixed race condition in DatabaseMeta, unit test, revised as per Luc's suggestion to use a ReentrantReadWriteLock