MULE-6831: Applications deleted when deployment fails

_ Fixing flaky test: org.mule.module.launcher.DeploymentServiceTestCase#deploysInvalidExplodedAppAfterStartup by synchronizing access to applications in MuleDeploymentService#stop