dxcore: Use a static structure for the adapter factory. To avoid races with the dynamically allocated approach.