Existence of global solutions to the Caginalp phase-field system with dynamic boundary conditions and singular potentials