Add master opts to the loader

This allows us to create objects in the wrapper classes that are run
purely on the master opts, Fix #16061