Fix: unlinking MetaContextGroup from MetaContext before deleting it