Long time behavior of the Caginalp system with singular potentials and dynamic boundary conditions