Fixing a concurrency issue over the device list (ArrayList) response