fix lifecycle startup/stop ordering problem with discovery module and make druid able to load local extensions