loopdev: fix a deadlock from https://github.com/faux123/tuna/commit/965fa30c0675af7086dffa940839bcc894ca376d