qt: fix use after free in first run wizard
- when MainCtx is destroyed, the medialibrary is destroyed
- dialogs provider was destroyed after the MainCtx, the dialog provider provides the FirstRun dialog
- FirstRun dialog uses a model from the medialibrary