Dielectric surface loss in superconducting resonators with flux-trapping holes