[PATCH v2 10/12] coresight: Add helper for atomically taking the device