Add check to know if an agent is disabled

change defaults since puppetdlock is not used anymore