The WT_CONN_LEAK_MEMORY flag can only be set after WT_CONNECTION.close is called.