Fixes #4221: add :dependent => :destroy for compute profiles on compute resource