Update freeze bonds to include all the connected atoms

This is needed because if it is just one of the atoms it does not
seem to work, and the dihedral will still rotate. By using all the
connected atoms it ensures that the dihedral is frozen.