Add locking to scaling group deletion.