Add nonglobal plugin loader support

This allows multiple threads to each have a PeasEngine
and be used without internal locking. It also allows using
lua5.1 plugins from multiple threads.

https://bugzilla.gnome.org/show_bug.cgi?id=739831