I'm not sure you can do this here... In fact, the configuration isn't loaded yet, as far as I recall, the object configuration is read, but this is done before the call to pre_flight_check(), which, as you could guess by the name obviously not only checks, but also does some resolution of commands.

In short: the object configuration isn't totally mangled at this point, even if it is read, which means there will be a race between commands beeing resolved and the first request to livestatus if spawning the threads here.