Actually test if the lock if taken

Change-Id: Icd1e4ed9b114bdb8e7be5b806c330e73e273e8fd
diff --git a/playbooks/workarounds/01-disable-unattended-upgrades.yaml b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
index 3c084f1..9e20e90 100644
--- a/playbooks/workarounds/01-disable-unattended-upgrades.yaml
+++ b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
@@ -10,9 +10,9 @@
 
     - name: Wait for the lock to get freed
       become: true
-      ansible.builtin.stat:
-        path: /var/lib/dpkg/lock-frontend
-      register: fstat
+      ignore_errors: true
+      ansible.builtin.shell: fuser /var/lib/dpkg/lock-frontend
+      register: out
       retries: 3600
       delay: 1
-      until: not fstat.stat.exists
+      until: out.rc == 1