ha: Do sync marks for pacemaker resources only when needed

It makes no sense to do the sync marks when we won't create the
resources.