plugin: don't increment reference count for temporary use

Plugin registration isn't multi-thread safe. Should we add locks?