Fix refcounting for member closures and global closures.