This issue was introduced in rB78f28b55d39288926634d0cc. The fix is to use a `std::shared_ptr` to ensure that the `Global` will live long enough until all `Local` objects are destructed.