This reverts commit f22dd9d7. Obsolete now that pw_init and factory loading/unloading has been made thread safe.