[ATM]: avoid race conditions related to atm_devs list