main.c: return transition error only once
When a plugin activation fails, it is supposed to fail the wireplumber init. To be precise it fails the wp init transition and the init transition objected is freed.
However the subsequent plugins added(as reported by the plugin object manager) trigger double free, prevent this by taking a weak reference.
Fixes #371 (closed)