Track metadata stores in the manager for cleanup

This allows the plugin data to be cleared explicitly at shutdown, not
implicitly via weak-reference.