[JENKINS-25029 ] Retry updating remote tags also for ondemand instances

This commit copies small security-mechanism that was present for spot instances but not for on-demand instances. It should greatly reduce JENKINS-25029 problems.

To fix this completely also monitor task should be added that will seek for these orphaned instances and terminate them.