Otherwise deadlock could happen - the script will try to get read lock on qubes.xml, while the calling tool can already hold the lock. If that was write lock (which is in case of qfile-daemon-dvm), the deadlock occurs.